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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fda58b605a057ec49aa6e530aab00762acfda1b
4
- data.tar.gz: df7ed8c88d4dde0e068750f634c6c54915ee20bb
3
+ metadata.gz: 5b167f7996a7a514e684f0efe0dcbb66e4f46985
4
+ data.tar.gz: fec738b7b60ab525680ad26df4324510c4d701b9
5
5
  SHA512:
6
- metadata.gz: 84b577561de62e2171dbbabded81ab66f2ece5d212b637d9a95ea8c82abdaf0ac05ffde6ba794ffe440155b142498d928ccb06359ab2d64370a79f28c9860211
7
- data.tar.gz: e97ddf807fd2fb8eebc96fc856577a3e002f6f0f12b2eeebf30c49cf496196133924d360ed444bfd381281c82423fb1421d62797d54744eb3b49cc49d2718e13
6
+ metadata.gz: 4e8e82a77c5018ade8e96b3506d0b38db3a8bf89c1268b4e20bcb58993a3c6aa3b73a9ef187598a8245d72a31046d4f865a6a32272685e76872d5fc6bf175c0a
7
+ data.tar.gz: 3baa17098254b328d6ea6f575b2d54a64cad1f6814d364966621cac641715a51bf70701b8347169b9a5090bcbaf9509d40ee14a88c43ce2952b7f3958273b1b0
@@ -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,3 +1,3 @@
1
1
  module CapistranoChef
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
@@ -1,36 +1,39 @@
1
1
  require 'spec_helper'
2
2
  require 'capistrano/chef'
3
3
 
4
- MOCK_NODE_DATA = [{
5
- "ipaddress" => '10.0.0.2',
6
- "fqdn" => 'localhost.localdomain',
7
- "hostname" => 'localhost',
8
- "network" => {
9
- "default_interface" => "eth0",
10
- "interfaces" => {
11
- "eth0" => {
12
- "addresses" => {
13
- "fe80::a00:27ff:feca:ab08" => {"scope" => "Link", "prefixlen" => "64", "family" => "inet6"},
14
- "10.0.0.2" => {"netmask" => "255.255.255.0", "broadcast" => "10.0.0.255", "family" => "inet"},
15
- "08:00:27:CA:AB:08" => {"family" => "lladdr"}
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
- "lo" => {
19
- "addresses" => {
20
- "::1" => {"scope" => "Node", "prefixlen" => "128", "family" => "inet6"},
21
- "127.0.0.1" => {"netmask" => "255.0.0.0", "family" => "inet"}
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
- "eth1" => {
25
- "addresses" => {
26
- "fe80::a00:27ff:fe79:83fc" => {"scope" => "Link", "prefixlen" => "64", "family" => "inet6"},
27
- "192.168.77.101" => {"netmask" => "255.255.255.0", "broadcast" => "192.168.77.255", "family" => "inet"},
28
- "08:00:27:79:83:FC" => {"family" => "lladdr"}
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.7
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-08 00:00:00.000000000 Z
11
+ date: 2013-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano