collins_client 0.2.19 → 0.2.20

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: 0a2c93ffc8c2bb06c1a55e7315abf176a1005cbc
4
- data.tar.gz: 8041a67b809e23df1f15aec52bf6c2a6c1594b2f
3
+ metadata.gz: 82af07b81292bf644d807ab02787436f4a29dca5
4
+ data.tar.gz: c6f125aeebe6b089f1b2d5a6acbe9e42e2bdf47c
5
5
  SHA512:
6
- metadata.gz: 59727d6129fedebd962c8536da8562c23abaf46e5cb4d45118c0c4e9bb510f594cd086d3033fa31fb40e3a1ad0442f3b86b87560f1ff4ead1037a6ecb1b8ea67
7
- data.tar.gz: c0e8c23522b3df2b9ebfd6c295a404a2e0b75c607facd3f976530dc744998a1ca7548ff2d70a8451a8b365f57b9d0f519e8095124fb24df4a72c6ce290ff0575
6
+ metadata.gz: f34de9ce41bdc45276de5847bd36b23e31cf27a1997a55910df03e8dea761907b9b4c0edc81570b5e421c73f1ff412f3a35b85fdefe664c44aa01d1c7cb34aff
7
+ data.tar.gz: db2c3365884a81a0358e195427507bfe50f3053223d5b4a825aa6f78db6549b1d80eab5d2b67148988a0a853202b4cc934e0f535bd1321acc5c1ea9b19e21223
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.19
1
+ 0.2.20
@@ -79,6 +79,20 @@ module Collins; module Api
79
79
  end
80
80
  end
81
81
 
82
+ # allocate IPMI address/creds on an asset in a given pool, and handles
83
+ # generating username/password, like a normal asset creation with IPMI.
84
+ # omit pool option for default IPMI pool
85
+ def ipmi_allocate asset_or_tag, options = {}
86
+ asset = get_asset_or_tag asset_or_tag
87
+ parameters = { :pool => get_option(:pool, options, nil) }
88
+ parameters = select_non_empty_parameters parameters
89
+ logger.debug("Allocating IPMI details on asset #{asset.tag} with parameters #{parameters.inspect}")
90
+ http_put("/api/asset/#{asset.tag}/ipmi", parameters, asset.location) do |response|
91
+ parse_response response, :expects => [201], :as => :status
92
+ end
93
+ end
94
+
95
+
82
96
  end # module Management
83
97
 
84
98
  end; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collins_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.19
4
+ version: 0.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Matheny
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.5.2
167
+ rubygems_version: 2.6.12
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Client library for Collins API