Module: VirtualMonkey::DeploymentRunner

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TestCaseInterface

#behavior, #probe, #set_var, #verify

Instance Attribute Details

#deploymentObject

Returns the value of attribute deployment.



4
5
6
# File 'lib/virtualmonkey/deployment_runner.rb', line 4

def deployment
  @deployment
end

#scripts_to_runObject

Returns the value of attribute scripts_to_run.



5
6
7
# File 'lib/virtualmonkey/deployment_runner.rb', line 5

def scripts_to_run
  @scripts_to_run
end

#serversObject

Returns the value of attribute servers.



4
5
6
# File 'lib/virtualmonkey/deployment_runner.rb', line 4

def servers
  @servers
end

Instance Method Details

#initialize(deployment) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/virtualmonkey/deployment_runner.rb', line 7

def initialize(deployment)
  @deployment = Deployment.find_by_nickname_speed(deployment).first
  raise "Fatal: Could not find a deployment named #{deployment}" unless @deployment
  @servers = @deployment.servers_no_reload
  @scripts_to_run = {}
  @rerun_last_command = []
  lookup_scripts
  @servers.each { |s| s.settings }
end