From 7a3348aa40e2539ffd17561e54216e01c2c231b3 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 3 Nov 2019 11:55:06 +0800 Subject: [PATCH] Use `fzf`, instead of `peco`. --- tasks/itamae.rake | 2 +- tasks/prep.rake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/itamae.rake b/tasks/itamae.rake index 36ca65b..1831e82 100644 --- a/tasks/itamae.rake +++ b/tasks/itamae.rake @@ -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" diff --git a/tasks/prep.rake b/tasks/prep.rake index 1a03d63..3c8168f 100644 --- a/tasks/prep.rake +++ b/tasks/prep.rake @@ -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"