bixby-client 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bixby-client"
8
- s.version = "0.1.2"
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-06"
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 [String] uuid
8
- # @param [String] public_key
9
- # @param [String] hostname
10
- # @param [FixNum] port
11
- # @param [String] tenant Name of the tenant
12
- # @param [String] password Password for registering an Agent with the server
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(uuid, public_key, hostname, port, tenant, password)
16
- # TODO these params should probably be a keyed hash instead
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 athe given list of files
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.2
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-06 00:00:00.000000000 Z
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: -705040790467950162
417
+ hash: 1881729864804391072
418
418
  segments:
419
419
  - 0
420
420
  version: '0'