vzcdn 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vzcdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Preston
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-09 00:00:00.000000000 Z
13
+ date: 2014-04-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -72,17 +72,22 @@ files:
72
72
  - bin/ec
73
73
  - bin/vzcdn
74
74
  - lib/args.rb
75
+ - lib/argtest.rb
75
76
  - lib/cloptions.rb
76
77
  - lib/clui_config.rb
77
- - lib/command_proc.rb
78
+ - lib/command.rb
78
79
  - lib/common.rb
79
80
  - lib/config_handler.rb
80
81
  - lib/config_reader.rb
82
+ - lib/makeBind.sh
81
83
  - lib/mediaManagment.rb
84
+ - lib/method.rb
85
+ - lib/print.rb
82
86
  - lib/realTimeStats.rb
83
87
  - lib/reporting.rb
84
88
  - lib/route.rb
85
89
  - lib/table_print.rb
90
+ - lib/test_options.rb
86
91
  - lib/upload.rb
87
92
  - lib/userInfo.rb
88
93
  - lib/util.rb
@@ -90,7 +95,9 @@ files:
90
95
  - lib/vzcdn/version.rb
91
96
  - lib/zone.rb
92
97
  - pkg/vzcdn-0.0.1.gem
98
+ - test/test_all.rb
93
99
  - test/test_clui.rb
100
+ - test/test_reporting.rb
94
101
  - vzcdn.gemspec
95
102
  homepage: ''
96
103
  licenses:
@@ -117,4 +124,6 @@ signing_key:
117
124
  specification_version: 4
118
125
  summary: Command line UI for Edgecast api.
119
126
  test_files:
127
+ - test/test_all.rb
120
128
  - test/test_clui.rb
129
+ - test/test_reporting.rb
data/lib/command_proc.rb DELETED
@@ -1,60 +0,0 @@
1
- module CommandProc
2
- def help(args)
3
- puts "Available commands:"
4
- @usage.each { |method|
5
- puts method[0].to_s + ": " + method[1]
6
- }
7
- end
8
-
9
- def self.included(base)
10
- base.extend(ClassMethods)
11
- base.init_instances
12
- end
13
-
14
- def getopt(obj, args, options)
15
-
16
- end
17
-
18
- module ClassMethods
19
- def init_instances
20
- class_eval <<-CODE
21
- def self.instances
22
- @@instances ||= nil
23
- end
24
- def self.instances=(value)
25
- @@instances = value
26
- end
27
- @@instances = {}
28
- CODE
29
- end
30
-
31
- def get_instance(name)
32
- if self.instances[name]
33
- self.instances[name]
34
- else
35
- self.instances[name] = self.new(name)
36
- end
37
- self.instances[name]
38
- end
39
-
40
- def invoke(args)
41
- instance = get_instance(nil)
42
- command = args.shift
43
- if command == nil
44
- command = "help"
45
- end
46
- if instance.respond_to?(command)
47
- instance.send(command, args)
48
- elsif args.length >= 1 && instance.respond_to?(args[0])
49
- name = command
50
- instance = get_instance(name)
51
- command = args.shift
52
- instance.send(command, args)
53
- else
54
- raise("argument '" + command + "' not recognized as command")
55
- end
56
- end
57
-
58
- end
59
-
60
- end