itamae/tasks/itamae.rake

10 lines
263 B
Ruby
Raw Permalink Normal View History

2019-03-03 08:50:49 +00:00
#!/usr/bin/env rake
desc 'Invoke itamae command'
task :itamae do
2019-11-03 03:55:06 +00:00
node = `ls -1 nodes/*.json | xargs -I % basename % .json | fzf`
2019-03-03 08:50:49 +00:00
node.chomp!
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json -p 10022 entrypoint.rb"
end