Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moved app in the cli namespace

  • Loading branch information...
commit 4350160e410e5db77ccf47ab0e8c83e310822729 1 parent 248b6b9
@nicolaracco nicolaracco authored
Showing with 20 additions and 17 deletions.
  1. +1 −16 bin/akamai_api
  2. +1 −1  lib/akamai_api/cli.rb
  3. +18 −0 lib/akamai_api/cli/app.rb
View
17 bin/akamai_api
@@ -4,19 +4,4 @@ require 'active_support/core_ext'
require 'akamai_api'
require 'akamai_api/cli'
-class AkamaiApiCommand < Thor
- desc 'ccu', 'CCU Interface'
- subcommand 'ccu', AkamaiApi::Cli::Ccu
-
- desc 'eccu', 'ECCU Interface'
- subcommand 'eccu', AkamaiApi::Cli::Eccu
-
- def help *args
- puts
- puts "AkamaiApi is a command line utility to interact with Akamai CCU (Content Control Utility) and ECCU (Enhanced Content Control Utility) services."
- puts
- super
- end
-end
-
-AkamaiApiCommand.start
+AkamaiApi::Cli::App.start
View
2  lib/akamai_api/cli.rb
@@ -1,3 +1,3 @@
-%w(template command ccu_cp_code ccu_arl ccu eccu).each do |file|
+%w(template command ccu_cp_code ccu_arl ccu eccu app).each do |file|
require File.expand_path "../cli/#{file}", __FILE__
end
View
18 lib/akamai_api/cli/app.rb
@@ -0,0 +1,18 @@
+module AkamaiApi
+ module Cli
+ class App < Thor
+ desc 'ccu', 'CCU Interface'
+ subcommand 'ccu', AkamaiApi::Cli::Ccu
+
+ desc 'eccu', 'ECCU Interface'
+ subcommand 'eccu', AkamaiApi::Cli::Eccu
+
+ def help *args
+ puts
+ puts "AkamaiApi is a command line utility to interact with Akamai CCU (Content Control Utility) and ECCU (Enhanced Content Control Utility) services."
+ puts
+ super
+ end
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.