capistrano-chef 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/chef.rb +1 -1
- data/lib/capistrano/chef/version.rb +1 -1
- data/spec/capistrano/chef_spec.rb +29 -26
- 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: 5b167f7996a7a514e684f0efe0dcbb66e4f46985
|
4
|
+
data.tar.gz: fec738b7b60ab525680ad26df4324510c4d701b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e8e82a77c5018ade8e96b3506d0b38db3a8bf89c1268b4e20bcb58993a3c6aa3b73a9ef187598a8245d72a31046d4f865a6a32272685e76872d5fc6bf175c0a
|
7
|
+
data.tar.gz: 3baa17098254b328d6ea6f575b2d54a64cad1f6814d364966621cac641715a51bf70701b8347169b9a5090bcbaf9509d40ee14a88c43ce2952b7f3958273b1b0
|
data/lib/capistrano/chef.rb
CHANGED
@@ -30,7 +30,7 @@ module Capistrano::Chef
|
|
30
30
|
else
|
31
31
|
raise ArgumentError, 'Search arguments must be Proc, Hash, Symbol, String.'
|
32
32
|
end
|
33
|
-
Chef::Search::Query.new.search(:node, query, 'X_CHEF_id_CHEF_X asc', 0, limit)[0].map(&search_proc)
|
33
|
+
Chef::Search::Query.new.search(:node, query, 'X_CHEF_id_CHEF_X asc', 0, limit)[0].compact.map(&search_proc)
|
34
34
|
end
|
35
35
|
|
36
36
|
def self.get_data_bag_item(id, data_bag = :apps)
|
@@ -1,36 +1,39 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'capistrano/chef'
|
3
3
|
|
4
|
-
MOCK_NODE_DATA = [
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
"
|
10
|
-
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"
|
14
|
-
|
15
|
-
|
4
|
+
MOCK_NODE_DATA = [
|
5
|
+
{
|
6
|
+
"ipaddress" => '10.0.0.2',
|
7
|
+
"fqdn" => 'localhost.localdomain',
|
8
|
+
"hostname" => 'localhost',
|
9
|
+
"network" => {
|
10
|
+
"default_interface" => "eth0",
|
11
|
+
"interfaces" => {
|
12
|
+
"eth0" => {
|
13
|
+
"addresses" => {
|
14
|
+
"fe80::a00:27ff:feca:ab08" => {"scope" => "Link", "prefixlen" => "64", "family" => "inet6"},
|
15
|
+
"10.0.0.2" => {"netmask" => "255.255.255.0", "broadcast" => "10.0.0.255", "family" => "inet"},
|
16
|
+
"08:00:27:CA:AB:08" => {"family" => "lladdr"}
|
17
|
+
},
|
16
18
|
},
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
"lo" => {
|
20
|
+
"addresses" => {
|
21
|
+
"::1" => {"scope" => "Node", "prefixlen" => "128", "family" => "inet6"},
|
22
|
+
"127.0.0.1" => {"netmask" => "255.0.0.0", "family" => "inet"}
|
23
|
+
},
|
22
24
|
},
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
"eth1" => {
|
26
|
+
"addresses" => {
|
27
|
+
"fe80::a00:27ff:fe79:83fc" => {"scope" => "Link", "prefixlen" => "64", "family" => "inet6"},
|
28
|
+
"192.168.77.101" => {"netmask" => "255.255.255.0", "broadcast" => "192.168.77.255", "family" => "inet"},
|
29
|
+
"08:00:27:79:83:FC" => {"family" => "lladdr"}
|
30
|
+
},
|
29
31
|
},
|
30
32
|
},
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
33
|
+
}
|
34
|
+
},
|
35
|
+
nil
|
36
|
+
]
|
34
37
|
|
35
38
|
describe Capistrano::Chef do
|
36
39
|
before do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan L Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|