diff options
Diffstat (limited to 'lib/leap_cli/commands/test.rb')
-rw-r--r-- | lib/leap_cli/commands/test.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb index e895a5e..80a6333 100644 --- a/lib/leap_cli/commands/test.rb +++ b/lib/leap_cli/commands/test.rb @@ -1,23 +1,23 @@ module LeapCli; module Commands - desc 'Run tests' - command :test do |c| - c.desc 'Creates files needed to run tests' - c.command :init do |c| - c.action do |global_options,options,args| + desc 'Run tests.' + command :test do |test| + test.desc 'Creates files needed to run tests.' + test.command :init do |init| + init.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| + test.desc 'Run tests.' + test.command :run do |run| + run.action do |global_options,options,args| log 'not yet implemented' end end - c.default_command :run + test.default_command :run end private |