From: elijah Date: Sun, 21 Oct 2012 20:59:57 +0000 (-0700) Subject: replace command 'init' with 'new-provider' X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=338b3d97b8cb0f5fca0339514ffdfaf30cc65498;p=leap%2Fleap_cli.git replace command 'init' with 'new-provider' --- diff --git a/lib/leap_cli/commands/init.rb b/lib/leap_cli/commands/project.rb similarity index 86% rename from lib/leap_cli/commands/init.rb rename to lib/leap_cli/commands/project.rb index de43a45..8ec9625 100644 --- a/lib/leap_cli/commands/init.rb +++ b/lib/leap_cli/commands/project.rb @@ -1,9 +1,10 @@ module LeapCli module Commands - desc 'Creates a new provider configuration directory.' + + desc 'Creates a new provider directory.' arg_name '' skips_pre - command :init do |c| + command :'new-provider' do |c| c.action do |global_options,options,args| directory = args.first unless directory && directory.any?