Class: EY::Deploy

Inherits:
DeployBase show all
Defined in:
lib/ey-deploy/deploy.rb

Overview

DeployBase

Defined Under Namespace

Classes: Configuration

Constant Summary

Constants included from Dataflow

Dataflow::UnificationError, Dataflow::VERSION

Instance Attribute Summary

Attributes inherited from Task

#config

Class Method Summary collapse

Methods inherited from DeployBase

#bundle, #callback, #cleanup_old_releases, #conditionally_enable_maintenance_page, #copy_repository_cache, #create_revision_file, #deploy, #disable_maintenance_page, #enable_maintenance_page, #get_bundler_installer, #migrate, #push_code, #restart, #rollback, #run_with_callbacks, #symlink, #symlink_configs

Methods included from LoggedOutput

#debug, #info, logfile, logfile=, #logged_system, verbose=, verbose?, #verbose?

Methods inherited from Task

#initialize, #require_custom_tasks, #roles, #run, #sudo

Methods included from Dataflow

#barrier, #by_need, #flow, included, #local, #need_later, #unify

Constructor Details

This class inherits a constructor from EY::Task

Class Method Details

.new(opts = {}) ⇒ Object



309
310
311
312
313
# File 'lib/ey-deploy/deploy.rb', line 309

def self.new(opts={})
  # include the correct fetch strategy
  include EY::Strategies.const_get(opts.strategy)::Helpers
  super
end

.run(opts = {}) ⇒ Object



315
316
317
318
319
# File 'lib/ey-deploy/deploy.rb', line 315

def self.run(opts={})
  conf = EY::Deploy::Configuration.new(opts)
  EY::Server.config = conf
  new(conf).send(opts["default_task"])
end