Module: Beaker::Puppeter

Defined in:
lib/beaker/puppeter.rb,
lib/beaker/puppeter/version.rb,
lib/beaker/puppeter/executor.rb

Defined Under Namespace

Classes: Executor

Constant Summary collapse

PUPPETER_SCRIPT_KEY =
'PUPPETER_ANSWERS'
VERSION =
'0.1.0'

Instance Method Summary collapse

Instance Method Details

#run_puppeter(answers = :auto) ⇒ Object



9
10
11
# File 'lib/beaker/puppeter.rb', line 9

def run_puppeter(answers = :auto)
  run_puppeter_on(hosts, answers)
end

#run_puppeter_on(hosts, answers = :auto) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/beaker/puppeter.rb', line 13

def run_puppeter_on(hosts, answers = :auto)
  hosts.each do |host|
    install_puppeter_on host
    execute_puppeter_on(host)
      .with(code: answers, env: env_answers)
  end
end