Module: EY::Serverside

Defined in:
lib/engineyard-serverside.rb,
lib/engineyard-serverside/cli.rb,
lib/engineyard-serverside/slug.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/cli/app.rb,
lib/engineyard-serverside/servers.rb,
lib/engineyard-serverside/spawner.rb,
lib/engineyard-serverside/version.rb,
lib/engineyard-serverside/callbacks.rb,
lib/engineyard-serverside/propagator.rb,
lib/engineyard-serverside/cli/helpers.rb,
lib/engineyard-serverside/deprecation.rb,
lib/engineyard-serverside/maintenance.rb,
lib/engineyard-serverside/slug/source.rb,
lib/engineyard-serverside/rails_assets.rb,
lib/engineyard-serverside/slug/enabler.rb,
lib/engineyard-serverside/cli/workflows.rb,
lib/engineyard-serverside/configuration.rb,
lib/engineyard-serverside/shell/helpers.rb,
lib/engineyard-serverside/shell/yieldio.rb,
lib/engineyard-serverside/slug/migrator.rb,
lib/engineyard-serverside/slug/finalizer.rb,
lib/engineyard-serverside/slug/generator.rb,
lib/engineyard-serverside/slug/restarter.rb,
lib/engineyard-serverside/shell/formatter.rb,
lib/engineyard-serverside/slug/distributor.rb,
lib/engineyard-serverside/callbacks/executor.rb,
lib/engineyard-serverside/cli/workflows/base.rb,
lib/engineyard-serverside/dependency_manager.rb,
lib/engineyard-serverside/callbacks/hooks/app.rb,
lib/engineyard-serverside/slug/source/updater.rb,
lib/engineyard-serverside/callbacks/collection.rb,
lib/engineyard-serverside/callbacks/hooks/base.rb,
lib/engineyard-serverside/cli/workflows/errors.rb,
lib/engineyard-serverside/slug/failure_handler.rb,
lib/engineyard-serverside/callbacks/distributor.rb,
lib/engineyard-serverside/cli/workflows/helpers.rb,
lib/engineyard-serverside/rails_assets/strategy.rb,
lib/engineyard-serverside/callbacks/service_hook.rb,
lib/engineyard-serverside/dependency_manager/npm.rb,
lib/engineyard-serverside/callbacks/executor/base.rb,
lib/engineyard-serverside/callbacks/executor/ruby.rb,
lib/engineyard-serverside/callbacks/hooks/service.rb,
lib/engineyard-serverside/dependency_manager/base.rb,
lib/engineyard-serverside/callbacks/collection/base.rb,
lib/engineyard-serverside/cli/server_hash_extractor.rb,
lib/engineyard-serverside/dependency_manager/bundler.rb,
lib/engineyard-serverside/dependency_manager/composer.rb,
lib/engineyard-serverside/callbacks/distributor/remote.rb,
lib/engineyard-serverside/callbacks/collection/combined.rb,
lib/engineyard-serverside/callbacks/executor/executable.rb,
lib/engineyard-serverside/callbacks/executor/ruby/context.rb,
lib/engineyard-serverside/callbacks/executor/ruby/executor.rb,
lib/engineyard-serverside/callbacks/collection/deploy_hooks.rb,
lib/engineyard-serverside/cli/workflows/integrating_servers.rb,
lib/engineyard-serverside/dependency_manager/legacy_helpers.rb,
lib/engineyard-serverside/callbacks/collection/service_hooks.rb,
lib/engineyard-serverside/cli/workflows/calling_deploy_hooks.rb,
lib/engineyard-serverside/cli/workflows/enabling_maintenance.rb,
lib/engineyard-serverside/cli/workflows/disabling_maintenance.rb,
lib/engineyard-serverside/cli/workflows/deploying_applications.rb,
lib/engineyard-serverside/cli/workflows/restarting_applications.rb,
lib/engineyard-serverside/callbacks/distributor/viability_filter.rb,
lib/engineyard-serverside/cli/workflows/rolling_back_applications.rb,
lib/engineyard-serverside/cli/workflows/showing_maintenance_status.rb,
lib/engineyard-serverside/callbacks/collection/service_hooks/combined.rb,
lib/engineyard-serverside/callbacks/collection/service_hooks/collection.rb

Defined Under Namespace

Modules: About, CLI, Callbacks, Slug Classes: DependencyManager, Deploy, DeployBase, Maintenance, Paths, Propagator, RailsAssets, Server, Servers, Shell, Source, Spawner, Task

Constant Summary collapse

RemoteFailure =
Class.new StandardError
VERSION =
'2.8.0'
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


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

def self.dna_json
  @dna_json ||= read_encoded_dna
end

.nodeObject


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

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