scli 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/generic.rb +2 -2
  2. data/lib/scli.rb +1 -0
  3. data/scli.gemspec +2 -2
  4. metadata +84 -69
@@ -47,7 +47,7 @@ module Scli
47
47
 
48
48
  def self.print_object(title, objects, data_to_print, options = {})
49
49
  table_to_print = []
50
- if objects.methods.include?(:each) # Its not a single object
50
+ if objects.respond_to?('each') # Its not a single object
51
51
  title = title + "(#{objects.count})"
52
52
  objects.each do |object|
53
53
  table_to_print << process_data_to_format(object, data_to_print)
@@ -68,7 +68,7 @@ module Scli
68
68
  next if vol.size.nil?
69
69
  total_vol_size += vol.size.to_i
70
70
  end
71
- puts "Total #{(total_vol_size.to_i / 1024.0).round(2)}Tb of storage"
71
+ puts "Total #{(total_vol_size.to_i / 1024.0).round / 1.0}Tb of storage"
72
72
  end
73
73
  end
74
74
 
@@ -141,6 +141,7 @@ module Scli
141
141
  begin
142
142
  plugin_executed = false
143
143
  PLUGINS.each do |plugin|
144
+ next if plugin == :separator
144
145
  commands = [plugin[0]] + plugin[1].split(",")
145
146
  if commands.include?(ARGV[0])
146
147
  Scli.send(plugin[0])
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'scli'
3
- s.version = '0.0.7'
4
- s.date = '2012-11-20'
3
+ s.version = '0.0.8'
4
+ s.date = '2013-01-24'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Josh Pasqualetto']
7
7
  s.email = ['josh.pasqualetto@sonian.net']
metadata CHANGED
@@ -1,89 +1,95 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: scli
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.7
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 8
10
+ version: 0.0.8
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Josh Pasqualetto
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-11-20 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-01-24 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: fog
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 1.7.0
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
25
+ requirements:
27
26
  - - ~>
28
- - !ruby/object:Gem::Version
27
+ - !ruby/object:Gem::Version
28
+ hash: 11
29
+ segments:
30
+ - 1
31
+ - 7
32
+ - 0
29
33
  version: 1.7.0
30
- - !ruby/object:Gem::Dependency
31
- name: mixlib-cli
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: 1.2.2
38
34
  type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: mixlib-cli
39
38
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
- requirements:
41
+ requirements:
43
42
  - - ~>
44
- - !ruby/object:Gem::Version
43
+ - !ruby/object:Gem::Version
44
+ hash: 27
45
+ segments:
46
+ - 1
47
+ - 2
48
+ - 2
45
49
  version: 1.2.2
46
- - !ruby/object:Gem::Dependency
47
- name: terminal-table
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 1.4.5
54
50
  type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: terminal-table
55
54
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
55
+ requirement: &id003 !ruby/object:Gem::Requirement
57
56
  none: false
58
- requirements:
57
+ requirements:
59
58
  - - ~>
60
- - !ruby/object:Gem::Version
59
+ - !ruby/object:Gem::Version
60
+ hash: 13
61
+ segments:
62
+ - 1
63
+ - 4
64
+ - 5
61
65
  version: 1.4.5
62
- - !ruby/object:Gem::Dependency
63
- name: colored
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - '='
68
- - !ruby/object:Gem::Version
69
- version: '1.2'
70
66
  type: :runtime
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: colored
71
70
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
71
+ requirement: &id004 !ruby/object:Gem::Requirement
73
72
  none: false
74
- requirements:
75
- - - '='
76
- - !ruby/object:Gem::Version
77
- version: '1.2'
78
- description: ! 'A command line tool to interface with IBM SmartCloud: create, view
79
- & delete instances, keys, volumes, addresses, etc'
80
- email:
73
+ requirements:
74
+ - - "="
75
+ - !ruby/object:Gem::Version
76
+ hash: 11
77
+ segments:
78
+ - 1
79
+ - 2
80
+ version: "1.2"
81
+ type: :runtime
82
+ version_requirements: *id004
83
+ description: "A command line tool to interface with IBM SmartCloud: create, view & delete instances, keys, volumes, addresses, etc"
84
+ email:
81
85
  - josh.pasqualetto@sonian.net
82
- executables:
86
+ executables:
83
87
  - scli
84
88
  extensions: []
89
+
85
90
  extra_rdoc_files: []
86
- files:
91
+
92
+ files:
87
93
  - bin/scli
88
94
  - lib/formatters.rb
89
95
  - lib/generic.rb
@@ -116,28 +122,37 @@ files:
116
122
  - README.org
117
123
  - MIT-LICENSE.txt
118
124
  homepage: https://github.com/sonian/scli
119
- licenses:
125
+ licenses:
120
126
  - MIT
121
127
  post_install_message:
122
128
  rdoc_options: []
123
- require_paths:
129
+
130
+ require_paths:
124
131
  - lib
125
- required_ruby_version: !ruby/object:Gem::Requirement
132
+ required_ruby_version: !ruby/object:Gem::Requirement
126
133
  none: false
127
- requirements:
128
- - - ! '>='
129
- - !ruby/object:Gem::Version
130
- version: '0'
131
- required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ hash: 3
138
+ segments:
139
+ - 0
140
+ version: "0"
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
132
142
  none: false
133
- requirements:
134
- - - ! '>='
135
- - !ruby/object:Gem::Version
136
- version: '0'
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ hash: 3
147
+ segments:
148
+ - 0
149
+ version: "0"
137
150
  requirements: []
151
+
138
152
  rubyforge_project:
139
153
  rubygems_version: 1.8.24
140
154
  signing_key:
141
155
  specification_version: 3
142
156
  summary: CLI Interface to IBM SmartCloud API
143
157
  test_files: []
158
+