Class: 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?, #banner, #bootstrap_aws, #build_nodes, #calculate_templates, #conf, #create_infranodes_json, #duration, #gen_ssh_key, #gen_x509_cert, #info, #infranodes, #is_mac?, #linux, #lock, #logs, #parse_log, #update_lock, #update_template, #warn, #wombat, #workstations
Constructor Details
#initialize(opts) ⇒ ListRunner
163 164 165 |
# File 'lib/wombat/cli.rb', line 163 def initialize(opts) @templates = opts.templates.nil? ? calculate_templates : opts.templates end |
Instance Attribute Details
#templates ⇒ Object (readonly)
Returns the value of attribute templates.
161 162 163 |
# File 'lib/wombat/cli.rb', line 161 def templates @templates end |
Instance Method Details
#start ⇒ Object
167 168 169 170 171 172 173 174 175 176 |
# File 'lib/wombat/cli.rb', line 167 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 |