gaptool-client 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6de8bc33084ec12da1f6fad916b314040c275b8
4
- data.tar.gz: d0fb9308219bd92b244369f5af51290639ecc8a9
3
+ metadata.gz: eea1ef7cd1973d35e2ecf0ef4b5a6ff2a5e49337
4
+ data.tar.gz: 13e61f36cba509078fcac0c257abe7b454947e46
5
5
  SHA512:
6
- metadata.gz: d8542c48e43566b1c6b4f444e3892ecef315f3a1c230848563d1e1be7e919bd6e946955cae84c91bb11e403b01d5ee2028e52f09610e86241d7f5cb8e50b2376
7
- data.tar.gz: 129975c34b7e5a48224f66fdf88551eb26615c7431582f0cdecd15f031d22b54586cc76673a5b31936b2e18e194e1aafbaeafa4841161623fa459baa3ebbc981
6
+ metadata.gz: a3a05e1a1c017c60927bc02a19bc82f809f0708047f10290a0a2724c3c4f88cf798fa8dc671dbecf158cf80af488225fbe7f9e0b3ebe0286fd20bd8cf7292bed
7
+ data.tar.gz: 388fffd74d4a41e79e6e12cfccfc1a097a423fd7c8178e1e3828f5830a3632ddbaede98c3e7bcb712462880c31823192708bc426883ec5357dc95aa400ff4b6a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.6.3
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.add_runtime_dependency 'clamp', "~> 0.6"
32
32
  s.add_runtime_dependency 'net-ssh', "~> 2.9"
33
33
  s.add_runtime_dependency 'net-scp', "~> 1.2"
34
- s.add_runtime_dependency 'gaptool-api', "= 0.4.0"
34
+ s.add_runtime_dependency 'gaptool-api', "= 0.4.2"
35
35
  s.add_runtime_dependency 'builder', "~> 3"
36
36
 
37
37
  s.add_development_dependency 'shoulda', "~> 3"
@@ -298,6 +298,18 @@ module Gaptool
298
298
  end
299
299
  end
300
300
 
301
+ class VersionCommand < Clamp::Command
302
+ option ["-r", "--remote"], :flag, "Include remote API version"
303
+ def execute
304
+ version = File.read(File.realpath(File.join(File.dirname(__FILE__), "..", 'VERSION'))).strip
305
+ puts "gaptool-client #{version} using gaptool-api #{$api.version}"
306
+ if remote?
307
+ vinfo = $api.api_version()
308
+ puts "gaptool-server #{vinfo['server_version']}"
309
+ end
310
+ end
311
+ end
312
+
301
313
  class MainCommand < Clamp::Command
302
314
 
303
315
  subcommand "info", "Displays information about nodes", InfoCommand
@@ -308,6 +320,7 @@ module Gaptool
308
320
  subcommand "deploy", "deploy on an application", DeployCommand
309
321
  subcommand "rehash", "Regenerate all host metadata. KNOW WHAT THIS DOES BEFORE RUNNING IT", RehashCommand
310
322
  subcommand "runcmd", "Run command on instance", RuncmdCommand
323
+ subcommand "version", "Show version", VersionCommand
311
324
 
312
325
  end
313
326
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaptool-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Laurita
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-09-10 00:00:00.000000000 Z
13
+ date: 2014-09-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -102,14 +102,14 @@ dependencies:
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.4.0
105
+ version: 0.4.2
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.4.0
112
+ version: 0.4.2
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: builder
115
115
  requirement: !ruby/object:Gem::Requirement