Module: VirtualMonkey::DeploymentRunner
- Includes:
- TestCaseInterface
- Included in:
- EBS, EBSRunner, ELBRunner, FeAppRunner, LampRunner, Mysql, MysqlRunner, MysqlToolboxRunner, PatchRunner, PhpAioTrialChefRunner, PhpChefRunner, RailsAioDeveloperChefRunner, SimpleRunner
- Defined in:
- lib/virtualmonkey/deployment_runner.rb
Instance Attribute Summary collapse
-
#deployment ⇒ Object
Returns the value of attribute deployment.
-
#scripts_to_run ⇒ Object
Returns the value of attribute scripts_to_run.
-
#servers ⇒ Object
Returns the value of attribute servers.
Instance Method Summary collapse
Methods included from TestCaseInterface
#behavior, #probe, #set_var, #verify
Instance Attribute Details
#deployment ⇒ Object
Returns the value of attribute deployment.
4 5 6 |
# File 'lib/virtualmonkey/deployment_runner.rb', line 4 def deployment @deployment end |
#scripts_to_run ⇒ Object
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 |
#servers ⇒ Object
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 |