Class: Wombat::LatestRunner
- Inherits:
-
Object
- Object
- Wombat::LatestRunner
- Defined in:
- lib/wombat/latest.rb
Instance Attribute Summary collapse
-
#cloud ⇒ Object
readonly
Returns the value of attribute cloud.
-
#lock_opt ⇒ Object
readonly
Returns the value of attribute lock_opt.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
-
#template_opt ⇒ Object
readonly
Returns the value of attribute template_opt.
Instance Method Summary collapse
-
#initialize(opts) ⇒ LatestRunner
constructor
A new instance of LatestRunner.
- #start ⇒ Object
Methods included from Aws
#find_latest_amis, #prefer, #sort_images
Methods included from Common
#audio?, #azure_provider_tag, #banner, #bootstrap_aws, #build_nodes, #calculate_templates, #conf, #connect_azure, #create_infranodes_json, #create_resource_group, #deployment_state, #duration, #follow_azure_deployment, #info, #infranodes, #is_mac?, #is_valid_json?, #linux, #list_outstanding_deployment_operations, #lock, #logs, #parse_log, #update_lock, #update_template, #warn, #wombat, #workstations
Constructor Details
#initialize(opts) ⇒ LatestRunner
Returns a new instance of LatestRunner.
15 16 17 |
# File 'lib/wombat/latest.rb', line 15 def initialize(opts) @cloud = opts.cloud.nil? ? "aws" : opts.cloud end |
Instance Attribute Details
#cloud ⇒ Object (readonly)
Returns the value of attribute cloud.
13 14 15 |
# File 'lib/wombat/latest.rb', line 13 def cloud @cloud end |
#lock_opt ⇒ Object (readonly)
Returns the value of attribute lock_opt.
13 14 15 |
# File 'lib/wombat/latest.rb', line 13 def lock_opt @lock_opt end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
13 14 15 |
# File 'lib/wombat/latest.rb', line 13 def stack @stack end |
#template_opt ⇒ Object (readonly)
Returns the value of attribute template_opt.
13 14 15 |
# File 'lib/wombat/latest.rb', line 13 def template_opt @template_opt end |
Instance Method Details
#start ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/wombat/latest.rb', line 19 def start if cloud =~ /aws/ find_latest_amis else puts "Unsupported for #{cloud}" end end |