knife-brightbox 0.7.0 → 0.7.1

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: caea307ca8cd33c6536695f0d20b61301240414e
4
- data.tar.gz: 474684c31a293494d5f12ea4ec663836bc5058b1
3
+ metadata.gz: 9211b0bdcd00c20988b3ad142eb7f3f7b6d21853
4
+ data.tar.gz: 6c393315043b04be91e9ce69710cb353b3dce9f9
5
5
  SHA512:
6
- metadata.gz: ea5a4c9ad19dbf93383fe85077f82072db3575eb17dc3bd3d87ced2f788db2c7452bb9b5e56035a04650ed57fc9746765b04a871d56c18c5787412a01e2fc14a
7
- data.tar.gz: 18e3e970205cd91dec5aeb99ff38b085762be020621c375d29fe2703e4f002472f5149e9ed2898f21a423e7fe62600cfa99acacf6af1668211ba74d7a13f6824
6
+ metadata.gz: d38c728b618e3c23662f226bf816cf344a271ff63d055cd32305d42e0fa7f7b5bb82244fe731e0cfbeab186c085f1a1b0f1e3184784c3e61a2e8e7bb2cab7e26
7
+ data.tar.gz: 145716aba33f00d23c700feb5aba592dd82114c4323806b422953fbd5fcf9fe327f9980ab370c81e2dbfb6ed2b3d3033062e6f3b3c5ec7b848533023f4dafba8
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.7.1
2
+
3
+ * Allows overriding of attributes defined in `.chef/knife.rb` (@gregkare)
4
+
1
5
  # 0.7.0
2
6
 
3
7
  * If only one of '--server-name' or '-N' (chef node name) is given, use that
@@ -157,7 +157,7 @@ class Chef
157
157
  def run
158
158
  $stdout.sync = true
159
159
 
160
- unless Chef::Config[:knife][:image]
160
+ unless config[:image]
161
161
  ui.error("You have not provided a valid image value. Please note the short option for this value recently changed from '-i' to '-I'.")
162
162
  exit 1
163
163
  end
@@ -165,9 +165,9 @@ class Chef
165
165
  print "#{ui.color("Creating server... ", :magenta)}"
166
166
  server = connection.servers.create(
167
167
  :name => config[:server_name] || config[:chef_node_name],
168
- :image_id => Chef::Config[:knife][:image],
168
+ :image_id => config[:image],
169
169
  :zone_id => zone_id,
170
- :flavor_id => Chef::Config[:knife][:flavor] || config[:flavor]
170
+ :flavor_id => config[:flavor]
171
171
  )
172
172
  puts " done \n"
173
173
 
@@ -249,7 +249,7 @@ class Chef
249
249
  end
250
250
 
251
251
  def zone_id
252
- zone_handle = Chef::Config[:knife][:zone] || config[:zone]
252
+ zone_handle = config[:zone]
253
253
 
254
254
  begin
255
255
  zones.fetch(zone_handle)
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Brightbox
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-brightbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rubio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-11 00:00:00.000000000 Z
11
+ date: 2015-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.2.2
83
+ rubygems_version: 2.4.5
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Brightbox Support for Chef's Knife Command