Merge branch 'use-fzf-instead-of-peco' of kazu634/itamae into master
This commit is contained in:
commit
12f21856bd
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
desc 'Invoke itamae command'
|
desc 'Invoke itamae command'
|
||||||
task :itamae do
|
task :itamae do
|
||||||
node = `ls -1 nodes/*.json | xargs -I % basename % .json | peco`
|
node = `ls -1 nodes/*.json | xargs -I % basename % .json | fzf`
|
||||||
node.chomp!
|
node.chomp!
|
||||||
|
|
||||||
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json -p 10022 entrypoint.rb"
|
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json -p 10022 entrypoint.rb"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
desc 'Invoke itamae command for the first time'
|
desc 'Invoke itamae command for the first time'
|
||||||
task :prep do
|
task :prep do
|
||||||
node = `ls -1 nodes/*.json | xargs -I % basename % .json | peco`
|
node = `ls -1 nodes/*.json | xargs -I % basename % .json | fzf`
|
||||||
node.chomp!
|
node.chomp!
|
||||||
|
|
||||||
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json entrypoint.rb"
|
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json entrypoint.rb"
|
||||||
|
|
Loading…
Reference in New Issue