Class: EY::Serverside::CLI::Workflows::IntegratingServers

Inherits:
Base
  • Object
show all
Defined in:
lib/engineyard-serverside/cli/workflows/integrating_servers.rb

Overview

IntegratingServers is a Workflow that attempts to integrate new servers into an existing environment

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#perform, perform

Constructor Details

#initialize(options = {}) ⇒ IntegratingServers

Returns a new instance of IntegratingServers.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/engineyard-serverside/cli/workflows/integrating_servers.rb', line 11

def initialize(options = {})
  super

  # We need to set some extra options, but options is frozen by
  # the time we get here, so dupe it!
  @options = options.dup

  # so that we deploy to the same place there that we have here
  @options[:release_path] = current_app_dir.realpath.to_s

  # we have to deploy the same SHA there as here
  @options[:branch] = current_app_dir.join('REVISION').read.strip

  # always rebundle gems on integrate to make sure the instance comes up correctly.
  @options[:clean] = true
end