Module: EY::Serverside

Defined in:
lib/engineyard-serverside.rb,
lib/engineyard-serverside/cli.rb,
lib/engineyard-serverside/task.rb,
lib/engineyard-serverside/about.rb,
lib/engineyard-serverside/paths.rb,
lib/engineyard-serverside/shell.rb,
lib/engineyard-serverside/deploy.rb,
lib/engineyard-serverside/server.rb,
lib/engineyard-serverside/servers.rb,
lib/engineyard-serverside/spawner.rb,
lib/engineyard-serverside/version.rb,
lib/engineyard-serverside/cli_helpers.rb,
lib/engineyard-serverside/deploy_hook.rb,
lib/engineyard-serverside/deprecation.rb,
lib/engineyard-serverside/maintenance.rb,
lib/engineyard-serverside/rails_assets.rb,
lib/engineyard-serverside/configuration.rb,
lib/engineyard-serverside/shell/helpers.rb,
lib/engineyard-serverside/shell/yieldio.rb,
lib/engineyard-serverside/shell/formatter.rb,
lib/engineyard-serverside/dependency_manager.rb,
lib/engineyard-serverside/rails_assets/strategy.rb,
lib/engineyard-serverside/dependency_manager/npm.rb,
lib/engineyard-serverside/dependency_manager/base.rb,
lib/engineyard-serverside/dependency_manager/bundler.rb,
lib/engineyard-serverside/dependency_manager/composer.rb,
lib/engineyard-serverside/dependency_manager/legacy_helpers.rb

Defined Under Namespace

Modules: About, CLIHelpers Classes: CLI, DependencyManager, Deploy, DeployBase, DeployHook, Maintenance, Paths, RailsAssets, Server, Servers, Shell, Source, Spawner, Task

Constant Summary collapse

RemoteFailure =
Class.new StandardError
VERSION =
'2.6.1'
DEPRECATED_CLASSES =
{
  :LoggedOutput   => EY::Serverside::Shell::Helpers,
  :LockfileParser => EY::Serverside::DependencyManager::Bundler::Lockfile,
  :Strategies     => EY::Serverside::Source::Git
}

Class Method Summary collapse

Class Method Details

.const_missing(const) ⇒ Object


22
23
24
25
26
27
28
29
# File 'lib/engineyard-serverside/deprecation.rb', line 22

def self.const_missing(const)
  if klass = DEPRECATED_CLASSES[const]
    deprecation_warning("EY::Serverside::#{const} has been deprecated. Please use: #{klass}")
    klass
  else
    super
  end
end

.deprecated_task(receiver, old_task, new_task) ⇒ Object


11
12
13
14
15
# File 'lib/engineyard-serverside/deprecation.rb', line 11

def self.deprecated_task(receiver, old_task, new_task)
  if receiver.respond_to?(old_task)
    deprecation_warning("Task ##{old_task} has been renamed to ##{new_task}.")
  end
end

.deprecation_warning(msg) ⇒ Object


7
8
9
# File 'lib/engineyard-serverside/deprecation.rb', line 7

def self.deprecation_warning(msg)
  $stderr.puts "DEPRECATION WARNING: #{msg}\n\t#{caller(2).first}"
end

.dna_jsonObject


46
47
48
# File 'lib/engineyard-serverside.rb', line 46

def self.dna_json
  @dna_json ||= read_encoded_dna
end

.nodeObject


42
43
44
# File 'lib/engineyard-serverside.rb', line 42

def self.node
  @node ||= deep_indifferentize(MultiJson.load(dna_json))
end