class ItamaeSpec::Task::LocalItamaeTask
Public Instance Methods
create_itamae_command(node_name, hash)
click to toggle source
# 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