6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/itamae-spec/task/local_itamae_task.rb', line 6
def create_itamae_command(node_name, hash)
command = 'bundle exec itamae-spec local'
command << " -j tmp-nodes/#{node_name}.json"
hash[:environments][:shell] = ENV['shell'] if ENV['shell']
command << if hash[:environments][:shell]
" --shell=#{hash[:environments][:shell]}"
else
' --shell=bash'
end
command << ' --dry-run' if ENV['dry-run'] == 'true'
command << ' --log-level=debug' if ENV['debug'] == 'true'
command
end
|