summaryrefslogtreecommitdiff
path: root/cli/lib/leap_cli/commands/init.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-10-09 00:05:44 -0700
committerelijah <elijah@riseup.net>2012-10-09 00:05:44 -0700
commit73b126976ad7843eb47a84944cf191bf05b14216 (patch)
tree918656f8d7c637e8c7a8f0c010eff55bfd98ae1b /cli/lib/leap_cli/commands/init.rb
parent578ac2f5dc7432317d7a022bed9d869ab89ee45c (diff)
fixed paths
Diffstat (limited to 'cli/lib/leap_cli/commands/init.rb')
-rw-r--r--cli/lib/leap_cli/commands/init.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/cli/lib/leap_cli/commands/init.rb b/cli/lib/leap_cli/commands/init.rb
deleted file mode 100644
index 75cc876..0000000
--- a/cli/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_now! "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