knife-rackspace 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/chef/knife/rackspace_base.rb +1 -1
- data/lib/chef/knife/rackspace_server_list.rb +1 -1
- data/lib/knife-rackspace/version.rb +1 -1
- data/spec/unit/rackspace_base_spec.rb +26 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3424287dbc7b2fc0cacf8f5d59f5f270620f114f
|
4
|
+
data.tar.gz: 622cf2499996948177d909c495ca9d036a9cf149
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a55cb84a25d9374ec39003f52312c58960e907eeff6f68612fd63e77d103ac773261c23a384fc12389b1ddcc079d893440228c6f69eac81a529509a550bc57fc
|
7
|
+
data.tar.gz: c727dbaa60bc04a9f2c5899c193cad18555e2ec9bcbd5493096b83a72a5dab724130bd913775e91b8dc59fd2ddae2b7146a0552f0395677b4fb670ab75027037
|
data/CHANGELOG.md
CHANGED
@@ -39,7 +39,7 @@ class Chef
|
|
39
39
|
if version_one?
|
40
40
|
network_list = %w{public private}
|
41
41
|
else
|
42
|
-
network_list = connection.
|
42
|
+
network_list = connection.networks.sort_by(&:label).collect { |t| t.label }
|
43
43
|
end
|
44
44
|
server_list.insert(2, network_list.collect { |n| ui.color("#{n.capitalize} IP", :bold) }).flatten!
|
45
45
|
num_columns_across = server_list.length
|
@@ -36,3 +36,29 @@ describe "auth_endpoint" do
|
|
36
36
|
expect(tester.auth_endpoint).to eq(::Fog::Rackspace::UK_AUTH_ENDPOINT)
|
37
37
|
end
|
38
38
|
end
|
39
|
+
|
40
|
+
describe "locate_config_value" do
|
41
|
+
it 'with cli options' do
|
42
|
+
# CLI
|
43
|
+
tester = RackspaceBaseTester.new
|
44
|
+
tester.parse_options([ "--rackspace-api-key", "12345" ])
|
45
|
+
|
46
|
+
# Knife Config
|
47
|
+
Chef::Config[:knife][:rackspace_api_key] = "67890"
|
48
|
+
|
49
|
+
# Test
|
50
|
+
expect(tester.locate_config_value(:rackspace_api_key)).to eq("12345")
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'without cli options' do
|
54
|
+
# CLI
|
55
|
+
tester = RackspaceBaseTester.new
|
56
|
+
tester.parse_options([])
|
57
|
+
|
58
|
+
# Knife Config
|
59
|
+
Chef::Config[:knife][:rackspace_api_key] = "67890"
|
60
|
+
|
61
|
+
# Test
|
62
|
+
expect(tester.locate_config_value(:rackspace_api_key)).to eq("67890")
|
63
|
+
end
|
64
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-rackspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-
|
15
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: knife-windows
|