diff options
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 |