Class: Wombat::LatestRunner

Inherits:
Object
  • Object
show all
Includes:
Aws, Common
Defined in:
lib/wombat/latest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cloudObject (readonly)

Returns the value of attribute cloud.



13
14
15
# File 'lib/wombat/latest.rb', line 13

def cloud
  @cloud
end

#lock_optObject (readonly)

Returns the value of attribute lock_opt.



13
14
15
# File 'lib/wombat/latest.rb', line 13

def lock_opt
  @lock_opt
end

#stackObject (readonly)

Returns the value of attribute stack.



13
14
15
# File 'lib/wombat/latest.rb', line 13

def stack
  @stack
end

#template_optObject (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

#startObject



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