Merge branch 'use-fzf-instead-of-peco' of kazu634/itamae into master

This commit is contained in:
Kazuhiro MUSASHI 2019-11-03 14:11:45 +09:00 committed by Gitea
commit 12f21856bd
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
desc 'Invoke itamae command'
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!
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json -p 10022 entrypoint.rb"

View File

@ -2,7 +2,7 @@
desc 'Invoke itamae command for the first time'
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!
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json entrypoint.rb"