lib/koma/cli.rb in koma-0.2.0 vs lib/koma/cli.rb in koma-0.3.0

- old
+ new

@@ -3,11 +3,11 @@ include Specinfra::Helper::Set module Koma class CLI < Thor - desc 'ssh', 'stdout server inventory' + desc 'ssh', 'stdout remote host inventory' option :key, type: :string, banner: '<key1,key2,..>', desc: 'inventory keys', aliases: :k @@ -32,21 +32,21 @@ ssh_options[:port] = options[:port] if options[:port] set :ssh_options, ssh_options puts JSON.pretty_generate out(options[:key]) end - desc 'exec', 'stdout local inventory' + desc 'exec', 'stdout local host inventory' option :key, type: :string, banner: '<key1,key2,..>', desc: 'inventory keys', aliases: :k def exec set :backend, :exec puts JSON.pretty_generate out(options[:key]) end - desc 'keys', 'server inventory keys' + desc 'keys', 'host inventory keys' def keys inventory_keys.each do |key| puts key end end