Module: EY::Serverside

Defined in:
lib/engineyard-serverside.rb,
lib/engineyard-serverside/cli.rb,
lib/engineyard-serverside/task.rb,
lib/engineyard-serverside/deploy.rb,
lib/engineyard-serverside/server.rb,
lib/engineyard-serverside/version.rb,
lib/engineyard-serverside/deploy_hook.rb,
lib/engineyard-serverside/deprecation.rb,
lib/engineyard-serverside/configuration.rb,
lib/engineyard-serverside/logged_output.rb,
lib/engineyard-serverside/strategies/git.rb,
lib/engineyard-serverside/lockfile_parser.rb,
lib/engineyard-serverside/bundle_installer.rb

Defined Under Namespace

Modules: LoggedOutput, Strategies Classes: BundleInstaller, CLI, Deploy, DeployBase, DeployHook, LockfileParser, Server, Task

Constant Summary collapse

RemoteFailure =
Class.new StandardError
VERSION =
'1.4.1'

Class Method Summary collapse

Class Method Details

.deprecation_warning(msg) ⇒ Object



3
4
5
# File 'lib/engineyard-serverside/deprecation.rb', line 3

def self.deprecation_warning(msg)
  STDERR.puts "DEPRECATION WARNING: #{msg}"      
end

.dna_jsonObject



30
31
32
33
34
35
36
# File 'lib/engineyard-serverside.rb', line 30

def self.dna_json
  @dna_json ||= if File.exist?('/etc/chef/dna.json')
                  `sudo cat /etc/chef/dna.json`
                else
                  {}.to_json
                end
end

.nodeObject



26
27
28
# File 'lib/engineyard-serverside.rb', line 26

def self.node
  @node ||= deep_indifferentize(JSON.parse(dna_json))
end