diff options
Diffstat (limited to 'lib/leap_cli/commands/init.rb')
-rw-r--r-- | lib/leap_cli/commands/init.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/leap_cli/commands/init.rb b/lib/leap_cli/commands/init.rb deleted file mode 100644 index de43a45..0000000 --- a/lib/leap_cli/commands/init.rb +++ /dev/null @@ -1,24 +0,0 @@ -module LeapCli - module Commands - desc 'Creates a new provider configuration directory.' - arg_name '<directory>' - skips_pre - command :init do |c| - c.action do |global_options,options,args| - directory = args.first - unless directory && directory.any? - help! "Directory name is required." - end - directory = File.expand_path(directory) - if File.exists?(directory) - raise "#{directory} already exists." - end - if agree("Create directory '#{directory}'? ") - LeapCli.init(directory) - else - puts "OK, bye." - end - end - end - end -end
\ No newline at end of file |