itamae/tasks/itamae.rake

10 lines
264 B
Ruby

#!/usr/bin/env rake
desc 'Invoke itamae command'
task :itamae do
node = `ls -1 nodes/*.json | xargs -I % basename % .json | peco`
node.chomp!
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json -p 10022 entrypoint.rb"
end