Sha256: 0ec51bcf30950ed91dfcd43f10af3f2b5a427bd82ad6ed33fc5a2cb623cc899f
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
$LOAD_PATH.push(File.expand_path("engineyard-serverside", File.dirname(__FILE__))) $LOAD_PATH.unshift File.expand_path('vendor/thor/lib', File.dirname(__FILE__)) $LOAD_PATH.unshift File.expand_path('vendor/open4/lib', File.dirname(__FILE__)) $LOAD_PATH.unshift File.expand_path('vendor/escape/lib', File.dirname(__FILE__)) $LOAD_PATH.unshift File.expand_path('vendor/json_pure/lib', File.dirname(__FILE__)) $LOAD_PATH.unshift File.expand_path('vendor/dataflow', File.dirname(__FILE__)) require 'escape' require 'json' require 'dataflow' require 'version' require 'strategies/git' require 'task' require 'server' require 'deploy' require 'deploy_hook' require 'lockfile_parser' require 'bundle_installer' require 'cli' require 'configuration' module EY def self.node @node ||= deep_indifferentize(JSON.parse(dna_json)) end def self.dna_json @dna_json ||= if File.exist?('/etc/chef/dna.json') `sudo cat /etc/chef/dna.json` else {}.to_json end end RemoteFailure = Class.new StandardError private def self.deep_indifferentize(thing) if thing.kind_of?(Hash) indifferent_hash = Thor::CoreExt::HashWithIndifferentAccess.new thing.each do |k, v| indifferent_hash[k] = deep_indifferentize(v) end indifferent_hash elsif thing.kind_of?(Array) thing.map {|x| deep_indifferentize(x)} else thing end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engineyard-serverside-1.3.6 | lib/engineyard-serverside.rb |