diff options
author | elijah <elijah@riseup.net> | 2012-11-28 14:08:39 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-11-28 14:08:39 -0800 |
commit | e2c31618b6f70d86c55c348436dd600b2e4ace21 (patch) | |
tree | 2bf27e98fc62af402499c0e7736b02b280dfc320 /lib/leap_cli/commands/test.rb | |
parent | 16f9ee1668a06d6b83dfc312d0601d4f235ab8ef (diff) |
command name shuffle -- grouped more commands together as subcommands
Diffstat (limited to 'lib/leap_cli/commands/test.rb')
-rw-r--r-- | lib/leap_cli/commands/test.rb | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb index dc08652..dd505b6 100644 --- a/lib/leap_cli/commands/test.rb +++ b/lib/leap_cli/commands/test.rb @@ -1,18 +1,23 @@ module LeapCli; module Commands - desc 'Creates files needed to run tests' - command :'init-test' do |c| - c.action do |global_options,options,args| - generate_test_client_cert - generate_test_client_openvpn_config - end - end - desc 'Run tests' command :test do |c| - c.action do |global_options,options,args| - log 'not yet implemented' + c.desc 'Creates files needed to run tests' + c.command :init do |c| + c.action do |global_options,options,args| + generate_test_client_cert + generate_test_client_openvpn_config + end end + + c.desc 'Run tests' + c.command :run do |c| + c.action do |global_options,options,args| + log 'not yet implemented' + end + end + + c.default_command :run end private |