bixby-client 0.1.2 → 0.1.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.
- data/VERSION +1 -1
- data/bixby-client.gemspec +2 -2
- data/lib/bixby-client/modules/inventory.rb +10 -10
- data/lib/bixby-client/modules/repository.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
data/bixby-client.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "bixby-client"
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Chetan Sarva"]
|
|
12
|
-
s.date = "2013-04-
|
|
12
|
+
s.date = "2013-04-12"
|
|
13
13
|
s.description = "Bixby Client"
|
|
14
14
|
s.email = "chetan@pixelcop.net"
|
|
15
15
|
s.executables = ["bixby"]
|
|
@@ -4,18 +4,18 @@ module Bixby
|
|
|
4
4
|
|
|
5
5
|
# Register an agent with the manager
|
|
6
6
|
#
|
|
7
|
-
# @param [
|
|
8
|
-
# @
|
|
9
|
-
# @
|
|
10
|
-
# @
|
|
11
|
-
# @
|
|
12
|
-
# @
|
|
7
|
+
# @param [Hash] opts
|
|
8
|
+
# @option opts [String] :uuid UUID of the host
|
|
9
|
+
# @option opts [String] :public_key Public key
|
|
10
|
+
# @option opts [String] :hostname Hostname
|
|
11
|
+
# @option opts [String] :tenant Name of the tenant
|
|
12
|
+
# @option opts [String] :password Password for registering an Agent with the server
|
|
13
|
+
# @option opts [FixNum] :port Port agent listens on (optional, default: 18000)
|
|
14
|
+
# @option opts [Array<String>] :tags List of tags to assign to host (optional)
|
|
13
15
|
#
|
|
14
16
|
# @return [JsonResponse]
|
|
15
|
-
def self.register_agent(
|
|
16
|
-
|
|
17
|
-
params = [ uuid, public_key, hostname, port, tenant, password ]
|
|
18
|
-
req = JsonRequest.new("inventory:register_agent", params)
|
|
17
|
+
def self.register_agent(opts)
|
|
18
|
+
req = JsonRequest.new("inventory:register_agent", opts)
|
|
19
19
|
return Bixby::Client.new(nil, nil).exec_api(req)
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ module Bixby
|
|
|
15
15
|
return res.data
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# Download
|
|
18
|
+
# Download the given list of files
|
|
19
19
|
#
|
|
20
20
|
# @param [CommandSpec] cmd CommandSpec representing the Bundle to which the files belong
|
|
21
21
|
# @param [Hash] files Hash, returned from #list_files
|
metadata
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
name: bixby-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.3
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Chetan Sarva
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-04-
|
|
12
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bixby-common
|
|
@@ -414,7 +414,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
414
414
|
requirements:
|
|
415
415
|
- - ! '>='
|
|
416
416
|
- !ruby/object:Gem::Version
|
|
417
|
-
hash:
|
|
417
|
+
hash: 1881729864804391072
|
|
418
418
|
segments:
|
|
419
419
|
- 0
|
|
420
420
|
version: '0'
|