Class: Wombat::ListRunner
Instance Attribute Summary collapse
-
#templates ⇒ Object
readonly
Returns the value of attribute templates.
Instance Method Summary collapse
-
#initialize(opts) ⇒ ListRunner
constructor
A new instance of ListRunner.
- #start ⇒ Object
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) ⇒ ListRunner
Returns a new instance of ListRunner.
226 227 228 |
# File 'lib/wombat/cli.rb', line 226 def initialize(opts) @templates = opts.templates.nil? ? calculate_templates : opts.templates end |
Instance Attribute Details
#templates ⇒ Object (readonly)
Returns the value of attribute templates.
224 225 226 |
# File 'lib/wombat/cli.rb', line 224 def templates @templates end |
Instance Method Details
#start ⇒ Object
230 231 232 233 234 235 236 237 238 239 |
# File 'lib/wombat/cli.rb', line 230 def start templates.each do |t| if !File.exists?("#{conf['packer_dir']}/#{t}.json") $stderr.puts "File #{conf['packer_dir']}/#{t}.json does not exist for template '#{t}'" exit(1) else puts t end end end |