gaptool-client 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWJiYjBiZTFhZTIzZDI0ZWI4NjA1NjFiYTc5YmI0ZmZjNmQ2OTllNA==
4
+ ZjQ5MWMzMzZkMWVkYmEzNTFiNzg4NjBiMDNkMGY0MzhkMDhjMGI1YQ==
5
5
  data.tar.gz: !binary |-
6
- ODFjMDllMjMyNGQyNDY4MTFjYWE3MWExYTI2NDZhNWMwZTE1MjEwMQ==
7
- !binary "U0hBNTEy":
6
+ OTM5MTFmNTYzMDYzNTI5OTE3MzcxZGE3MzdkNTAxMGQxY2QyNDE4Ng==
7
+ SHA512:
8
8
  metadata.gz: !binary |-
9
- OGVhZWZlOGFjN2JkZjA0NDlhMjA0NmM5NTExN2RhNjI0MWUyNTM3YzE4YTBm
10
- Y2Q5ZTFkZTE4ZmZjZjBkNmM5M2Y2NmJiMjVkNzM2NDgyZjA1NTE5YzllYWRi
11
- YjQ4ODBjNjAyYjI3M2Y5MDkxZmRmYmE5MDU4N2EyNTVjMDVhYzU=
9
+ NzM1YzA5ZTY4YWUzNzI1MjQyNWE0ZmQ4ZTdmYmFkYTFjZTI4NTRjMjI2MDZk
10
+ MDhhMzE5ODI4ODM4ZDVjZjQ5YWYwZmI3NTQwYTY0ZjExNjg3YjdkMDU4MGJi
11
+ N2YyNjM3NDM3N2MzMzk5MWQ4ZTI2MTNiOGI2MzY1NjVhMWJkNDI=
12
12
  data.tar.gz: !binary |-
13
- MzJkMWVjNzNjNzY3ZGU5MWM5ZjBjNGE2NTFjMTQ4NjMyZWI3Y2RiOTIwMzQ1
14
- ODI4ZTRlZjc0NzhkNjY2MTYyYTJiODZkODU4NWFiYjMwYWQ0ZGRlMDlmM2E5
15
- MjllNDU1YzJlZWRhMjRlMDU0NzFkNGEwMzgyMjM1Yjk0YzEwODY=
13
+ MzZlNjUyNGMzN2FiNGVkNjdiMmVmMWEzMzc5NzQ5ODlmOWMxMzEwMTJiYjlm
14
+ Mjc4OTdmNzA5ZjA1YzAzYmU2YzZkZmVlODllZjRjOWVjODkwZmRmYWU3ODk1
15
+ ZTFlMGJjNmZjNjVmMTgyYmVjZTk3Y2RkNjJjNTQ5NTk1MDY1MjQ=
data/.gitignore ADDED
@@ -0,0 +1,50 @@
1
+ # rcov generated
2
+ coverage
3
+ coverage.data
4
+
5
+ # rdoc generated
6
+ rdoc
7
+
8
+ # yard generated
9
+ doc
10
+ .yardoc
11
+
12
+ # bundler
13
+ .bundle
14
+
15
+ # jeweler generated
16
+ pkg
17
+
18
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
+ #
20
+ # * Create a file at ~/.gitignore
21
+ # * Include files you want ignored
22
+ # * Run: git config --global core.excludesfile ~/.gitignore
23
+ #
24
+ # After doing this, these files will be ignored in all your git projects,
25
+ # saving you from having to 'pollute' every project you touch with them
26
+ #
27
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
+ #
29
+ # For MacOS:
30
+ #
31
+ #.DS_Store
32
+
33
+ # For TextMate
34
+ #*.tmproj
35
+ #tmtags
36
+
37
+ # For emacs:
38
+ #*~
39
+ #\#*
40
+ #.\#*
41
+
42
+ # For vim:
43
+ #*.swp
44
+
45
+ # For redcar:
46
+ #.redcar
47
+
48
+ # For rubinius:
49
+ #*.rbc
50
+ Gemfile.lock
data/Gemfile CHANGED
@@ -1,23 +1,3 @@
1
- source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
1
+ source "https://rubygems.org"
5
2
 
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
- group :development do
9
- gem "shoulda", ">= 0"
10
- gem "rdoc", ">= 0"
11
- gem "bundler", ">= 0"
12
- gem "jeweler", "~> 1.8.4"
13
- gem "simplecov", ">= 0"
14
- end
15
-
16
- gem 'json'
17
- gem 'peach'
18
- gem 'rainbow'
19
- gem 'clamp', '>= 0.6.1'
20
- gem 'net-ssh'
21
- gem 'net-scp'
22
- gem 'gaptool-api', ">= 0.3.5"
23
- gem 'builder'
3
+ gemspec
data/Rakefile CHANGED
@@ -1,45 +1,9 @@
1
- # encoding: utf-8
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
2
3
 
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
4
+ RSpec::Core::RakeTask.new(:spec) do |spec|
5
+ spec.pattern = 'spec/*_spec.rb'
11
6
  end
12
- require 'rake'
13
7
 
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "gaptool-client"
18
- gem.homepage = "http://github.com/mattbailey/gaptool-client"
19
- gem.license = "MIT"
20
- gem.summary = %Q{gaptool client}
21
- gem.description = %Q{client for gaptool-server}
22
- gem.email = "m@mdb.io"
23
- gem.authors = ["Matt Bailey"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
28
- require 'rake/testtask'
29
- Rake::TestTask.new(:test) do |test|
30
- test.libs << 'lib' << 'test'
31
- test.pattern = 'test/**/test_*.rb'
32
- test.verbose = true
33
- end
34
-
35
- task :default => :test
36
-
37
- require 'rdoc/task'
38
- Rake::RDocTask.new do |rdoc|
39
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
-
41
- rdoc.rdoc_dir = 'rdoc'
42
- rdoc.title = "gaptool-client #{version}"
43
- rdoc.rdoc_files.include('README*')
44
- rdoc.rdoc_files.include('lib/**/*.rb')
45
- end
8
+ task :default => :spec
9
+ task :test => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -3,86 +3,40 @@
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
+ # -*- encoding: utf-8 -*-
7
+ $:.push File.expand_path("../lib", __FILE__)
8
+
6
9
  Gem::Specification.new do |s|
7
- s.name = "gaptool-client"
8
- s.version = "0.5.2"
10
+ s.name = "gaptool-client"
11
+ s.version = "0.5.3"
12
+ s.authors = ["Francesco Laurita", "Matt Bailey"]
13
+ s.email = ["francesco@gild.com"]
14
+ s.homepage = "http://www.gild.com"
15
+ s.summary = %q{client for gaptool-server}
16
+ s.description = %q{
17
+ gaptool client
18
+ }
19
+ s.licenses = ["MIT"]
20
+
21
+ s.rubyforge_project = "gaptool-client"
9
22
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Matt Bailey"]
12
- s.date = "2013-07-24"
13
- s.description = "client for gaptool-server"
14
- s.email = "m@mdb.io"
15
- s.executables = ["gt"]
16
- s.extra_rdoc_files = [
17
- "LICENSE.txt",
18
- "README.md"
19
- ]
20
- s.files = [
21
- ".document",
22
- "Gemfile",
23
- "Gemfile.lock",
24
- "LICENSE.txt",
25
- "README.md",
26
- "Rakefile",
27
- "VERSION",
28
- "bin/gt",
29
- "gaptool-client.gemspec",
30
- "lib/gaptool-client.rb",
31
- "test/helper.rb",
32
- "test/test_gaptool-client.rb"
33
- ]
34
- s.homepage = "http://github.com/mattbailey/gaptool-client"
35
- s.licenses = ["MIT"]
23
+ s.files = `git ls-files`.split("\n")
24
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
25
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
36
26
  s.require_paths = ["lib"]
37
- s.rubygems_version = "2.0.5"
38
- s.summary = "gaptool client"
39
27
 
40
- if s.respond_to? :specification_version then
41
- s.specification_version = 4
28
+ s.add_runtime_dependency(%q<json>, [">= 0"])
29
+ s.add_runtime_dependency(%q<peach>, [">= 0"])
30
+ s.add_runtime_dependency(%q<rainbow>, ["~> 2.0"])
31
+ s.add_runtime_dependency(%q<clamp>, [">= 0.6.1"])
32
+ s.add_runtime_dependency(%q<net-ssh>, [">= 0"])
33
+ s.add_runtime_dependency(%q<net-scp>, [">= 0"])
34
+ s.add_runtime_dependency(%q<gaptool-api>, [">= 0.3.5"])
35
+ s.add_runtime_dependency(%q<builder>, [">= 0"])
42
36
 
43
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
- s.add_runtime_dependency(%q<json>, [">= 0"])
45
- s.add_runtime_dependency(%q<peach>, [">= 0"])
46
- s.add_runtime_dependency(%q<rainbow>, [">= 0"])
47
- s.add_runtime_dependency(%q<clamp>, [">= 0.6.1"])
48
- s.add_runtime_dependency(%q<net-ssh>, [">= 0"])
49
- s.add_runtime_dependency(%q<net-scp>, [">= 0"])
50
- s.add_runtime_dependency(%q<gaptool-api>, [">= 0.3.5"])
51
- s.add_runtime_dependency(%q<builder>, [">= 0"])
52
- s.add_development_dependency(%q<shoulda>, [">= 0"])
53
- s.add_development_dependency(%q<rdoc>, [">= 0"])
54
- s.add_development_dependency(%q<bundler>, [">= 0"])
55
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
56
- s.add_development_dependency(%q<simplecov>, [">= 0"])
57
- else
58
- s.add_dependency(%q<json>, [">= 0"])
59
- s.add_dependency(%q<peach>, [">= 0"])
60
- s.add_dependency(%q<rainbow>, [">= 0"])
61
- s.add_dependency(%q<clamp>, [">= 0.6.1"])
62
- s.add_dependency(%q<net-ssh>, [">= 0"])
63
- s.add_dependency(%q<net-scp>, [">= 0"])
64
- s.add_dependency(%q<gaptool-api>, [">= 0.3.5"])
65
- s.add_dependency(%q<builder>, [">= 0"])
66
- s.add_dependency(%q<shoulda>, [">= 0"])
67
- s.add_dependency(%q<rdoc>, [">= 0"])
68
- s.add_dependency(%q<bundler>, [">= 0"])
69
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
70
- s.add_dependency(%q<simplecov>, [">= 0"])
71
- end
72
- else
73
- s.add_dependency(%q<json>, [">= 0"])
74
- s.add_dependency(%q<peach>, [">= 0"])
75
- s.add_dependency(%q<rainbow>, [">= 0"])
76
- s.add_dependency(%q<clamp>, [">= 0.6.1"])
77
- s.add_dependency(%q<net-ssh>, [">= 0"])
78
- s.add_dependency(%q<net-scp>, [">= 0"])
79
- s.add_dependency(%q<gaptool-api>, [">= 0.3.5"])
80
- s.add_dependency(%q<builder>, [">= 0"])
81
- s.add_dependency(%q<shoulda>, [">= 0"])
82
- s.add_dependency(%q<rdoc>, [">= 0"])
83
- s.add_dependency(%q<bundler>, [">= 0"])
84
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
85
- s.add_dependency(%q<simplecov>, [">= 0"])
86
- end
87
- end
37
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
38
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
39
+ s.add_development_dependency(%q<bundler>, [">= 0"])
40
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
88
41
 
42
+ end
@@ -14,16 +14,16 @@ def infohelper(nodes, parseable, grepable)
14
14
  nodes.each do |node|
15
15
  @host = "#{node['role']}:#{node['environment']}:#{node['instance']}"
16
16
  unless grepable
17
- puts @host.color(:green)
17
+ puts Rainbow(@host).green
18
18
  end
19
19
  node.keys.each do |key|
20
20
  if grepable
21
21
  puts "#{@host}|#{key}|#{node[key]}"
22
22
  else
23
23
  unless key == node.keys.last
24
- puts " ┠ #{key.color(:cyan)}: #{node[key]}"
24
+ puts " ┠ #{Rainbow(key).cyan}: #{node[key]}"
25
25
  else
26
- puts " ┖ #{key.color(:cyan)}: #{node[key]}\n\n"
26
+ puts " ┖ #{Rainbow(key).cyan}: #{node[key]}\n\n"
27
27
  end
28
28
  end
29
29
  end
@@ -51,11 +51,11 @@ def sshcmd(node, commands)
51
51
  abort "FAILED: couldn't execute command (ssh.channel.exec)"
52
52
  end
53
53
  channel.on_data do |ch,data|
54
- puts "#{node['role'].color(:yellow)}:#{node['environment'].color(:yellow)}:#{node['instance'].color(:yellow)}> #{data}"
54
+ puts "#{Rainbow(node['role']).yellow}:#{Rainbow(node['environment']).yellow}:#{Rainbow(node['instance']).yellow}> #{data}"
55
55
  end
56
56
 
57
57
  channel.on_extended_data do |ch,type,data|
58
- puts "#{node['role'].color(:yellow)}:#{node['environment'].color(:yellow)}:#{node['instance'].color(:red)}> #{data}"
58
+ puts "#{Rainbow(node['role']).yellow}:#{Rainbow(node['environment']).yellow}:#{Rainbow(node['instance']).red}> #{data}"
59
59
  end
60
60
 
61
61
  channel.on_request("exit-status") do |ch,data|
@@ -141,14 +141,14 @@ module Gaptool
141
141
  else
142
142
  nodes = $api.getenvroles(role, environment)
143
143
  if first? || nodes.size == 1
144
- puts "No instnace specified, but only one instance in cluster or first forced"
144
+ puts "No instance specified, but only one instance in cluster or first forced"
145
145
  @ssh = $api.ssh(role, environment, nodes.first['instance'])
146
146
  else
147
147
  puts "No instance specified, querying list."
148
148
  nodes.each_index do |i|
149
149
  puts "#{i}: #{nodes[i]['instance']}"
150
150
  end
151
- print "Select a node: ".color(:cyan)
151
+ print Rainbow("Select a node: ").cyan
152
152
  @ssh = $api.ssh(role, environment, nodes[$stdin.gets.chomp.to_i]['instance'])
153
153
  end
154
154
  end
@@ -315,9 +315,9 @@ module Gaptool
315
315
  if service.nil?
316
316
  keyhash = $api.svcapi_showkeys(:all)
317
317
  keyhash.keys.each do |service|
318
- puts service.color(:green)
318
+ puts Rainbow(service).green
319
319
  keyhash[service].keys.each do |state|
320
- puts " ┖ #{state}".color(:cyan)
320
+ puts Rainbow(" ┖ #{state}").cyan
321
321
  keyhash[service][state].each do |key|
322
322
  puts " - #{key}"
323
323
  end
@@ -325,9 +325,9 @@ module Gaptool
325
325
  end
326
326
  else
327
327
  keyhash = $api.svcapi_showkeys(service)
328
- puts service.color(:green)
328
+ puts Rainbow(service).green
329
329
  keyhash.keys.each do |state|
330
- puts " ┖ #{state}".color(:cyan)
330
+ puts Rainbow(" ┖ #{state}").cyan
331
331
  keyhash[state].each do |key|
332
332
  puts " - #{key}"
333
333
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaptool-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
+ - Francesco Laurita
7
8
  - Matt Bailey
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-07-24 00:00:00.000000000 Z
12
+ date: 2014-04-21 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: json
@@ -42,16 +43,16 @@ dependencies:
42
43
  name: rainbow
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - ! '>='
46
+ - - ~>
46
47
  - !ruby/object:Gem::Version
47
- version: '0'
48
+ version: '2.0'
48
49
  type: :runtime
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
- - - ! '>='
53
+ - - ~>
53
54
  - !ruby/object:Gem::Version
54
- version: '0'
55
+ version: '2.0'
55
56
  - !ruby/object:Gem::Dependency
56
57
  name: clamp
57
58
  requirement: !ruby/object:Gem::Requirement
@@ -164,20 +165,6 @@ dependencies:
164
165
  - - ! '>='
165
166
  - !ruby/object:Gem::Version
166
167
  version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: jeweler
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ~>
172
- - !ruby/object:Gem::Version
173
- version: 1.8.4
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ~>
179
- - !ruby/object:Gem::Version
180
- version: 1.8.4
181
168
  - !ruby/object:Gem::Dependency
182
169
  name: simplecov
183
170
  requirement: !ruby/object:Gem::Requirement
@@ -192,18 +179,17 @@ dependencies:
192
179
  - - ! '>='
193
180
  - !ruby/object:Gem::Version
194
181
  version: '0'
195
- description: client for gaptool-server
196
- email: m@mdb.io
182
+ description: ! "\n gaptool client\n "
183
+ email:
184
+ - francesco@gild.com
197
185
  executables:
198
186
  - gt
199
187
  extensions: []
200
- extra_rdoc_files:
201
- - LICENSE.txt
202
- - README.md
188
+ extra_rdoc_files: []
203
189
  files:
204
190
  - .document
191
+ - .gitignore
205
192
  - Gemfile
206
- - Gemfile.lock
207
193
  - LICENSE.txt
208
194
  - README.md
209
195
  - Rakefile
@@ -213,7 +199,7 @@ files:
213
199
  - lib/gaptool-client.rb
214
200
  - test/helper.rb
215
201
  - test/test_gaptool-client.rb
216
- homepage: http://github.com/mattbailey/gaptool-client
202
+ homepage: http://www.gild.com
217
203
  licenses:
218
204
  - MIT
219
205
  metadata: {}
@@ -232,10 +218,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
218
  - !ruby/object:Gem::Version
233
219
  version: '0'
234
220
  requirements: []
235
- rubyforge_project:
236
- rubygems_version: 2.0.5
221
+ rubyforge_project: gaptool-client
222
+ rubygems_version: 2.2.2
237
223
  signing_key:
238
224
  specification_version: 4
239
- summary: gaptool client
240
- test_files: []
241
- has_rdoc:
225
+ summary: client for gaptool-server
226
+ test_files:
227
+ - test/helper.rb
228
+ - test/test_gaptool-client.rb
data/Gemfile.lock DELETED
@@ -1,59 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activesupport (3.2.13)
5
- i18n (= 0.6.1)
6
- multi_json (~> 1.0)
7
- builder (3.2.0)
8
- clamp (0.6.1)
9
- gaptool-api (0.3.5)
10
- httparty
11
- git (1.2.5)
12
- httparty (0.11.0)
13
- multi_json (~> 1.0)
14
- multi_xml (>= 0.5.2)
15
- i18n (0.6.1)
16
- jeweler (1.8.4)
17
- bundler (~> 1.0)
18
- git (>= 1.2.5)
19
- rake
20
- rdoc
21
- json (1.8.0)
22
- multi_json (1.7.3)
23
- multi_xml (0.5.3)
24
- net-scp (1.1.1)
25
- net-ssh (>= 2.6.5)
26
- net-ssh (2.6.7)
27
- peach (0.5.1)
28
- rainbow (1.1.4)
29
- rake (10.0.4)
30
- rdoc (4.0.1)
31
- json (~> 1.4)
32
- shoulda (3.5.0)
33
- shoulda-context (~> 1.0, >= 1.0.1)
34
- shoulda-matchers (>= 1.4.1, < 3.0)
35
- shoulda-context (1.1.2)
36
- shoulda-matchers (2.1.0)
37
- activesupport (>= 3.0.0)
38
- simplecov (0.7.1)
39
- multi_json (~> 1.0)
40
- simplecov-html (~> 0.7.1)
41
- simplecov-html (0.7.1)
42
-
43
- PLATFORMS
44
- ruby
45
-
46
- DEPENDENCIES
47
- builder
48
- bundler
49
- clamp (>= 0.6.1)
50
- gaptool-api (>= 0.3.5)
51
- jeweler (~> 1.8.4)
52
- json
53
- net-scp
54
- net-ssh
55
- peach
56
- rainbow
57
- rdoc
58
- shoulda
59
- simplecov