gaptool-client 0.6.2 → 0.6.3
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/gaptool-client.gemspec +1 -1
- data/lib/gaptool-client.rb +13 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eea1ef7cd1973d35e2ecf0ef4b5a6ff2a5e49337
|
4
|
+
data.tar.gz: 13e61f36cba509078fcac0c257abe7b454947e46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3a05e1a1c017c60927bc02a19bc82f809f0708047f10290a0a2724c3c4f88cf798fa8dc671dbecf158cf80af488225fbe7f9e0b3ebe0286fd20bd8cf7292bed
|
7
|
+
data.tar.gz: 388fffd74d4a41e79e6e12cfccfc1a097a423fd7c8178e1e3828f5830a3632ddbaede98c3e7bcb712462880c31823192708bc426883ec5357dc95aa400ff4b6a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.3
|
data/gaptool-client.gemspec
CHANGED
@@ -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.
|
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"
|
data/lib/gaptool-client.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
112
|
+
version: 0.4.2
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: builder
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|