chefdepartie 0.0.4 → 0.0.5

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: 4798d0d48e4fa238966cc55491e6febb0fe5db10
4
- data.tar.gz: 0ccc4bc0eb60298ba3c32c4910dff89a24c823f2
3
+ metadata.gz: a6cce015b3b98610b59d135891bb7e7273b9f625
4
+ data.tar.gz: a2d809eec199079dc747e8ac2f18cd4b3d3bb68c
5
5
  SHA512:
6
- metadata.gz: 6244d41cd09e6ddb218c0c04019fc5cc817becf94805cce27f7f280fe062c914242902bacd2614835e7c66465ed005ac9bdadeeed15ab289ea65f8a11a0ab9bd
7
- data.tar.gz: 9f51599b27ca12a0783bc3f37398e9e08054bd90b8b33c45641a289e25ea58d1e9aae0f2a1bda87cf30eb13658e51ece493f24517b947c67638ff277c5732b0e
6
+ metadata.gz: f043835243ecbf22dc13000806d27e254b262c63b4e3bc733dc97a525ccb91977c7742ad53d5f78835e9c3235758c3fea0b5a8c9a0aa9d21e2076c5b4f0fbaaa
7
+ data.tar.gz: 0181eb915b23f3999860f4ecd613f5a4c3dd25cc86ebd49bae46dbf3d0c75257f4fd50c62e6a6f2681b1eb4a488c956e307cbf80ff59890b6cd039b42e1f4526
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chefdepartie (0.0.4)
4
+ chefdepartie (0.0.5)
5
5
  chef (~> 12.3.0)
6
6
  chef-zero (~> 4.2.2)
7
7
  librarian-chef (~> 0.0.4)
@@ -32,7 +32,10 @@ GEM
32
32
  rspec_junit_formatter (~> 0.2.0)
33
33
  serverspec (~> 2.7)
34
34
  specinfra (~> 2.10)
35
- chef-zero (4.2.2)
35
+ chef-config (12.5.1)
36
+ mixlib-config (~> 2.0)
37
+ mixlib-shellout (~> 2.0)
38
+ chef-zero (4.2.3)
36
39
  ffi-yajl (>= 1.1, < 3.0)
37
40
  hashie (~> 2.0)
38
41
  mixlib-log (~> 1.3)
@@ -43,10 +46,10 @@ GEM
43
46
  docile (1.1.5)
44
47
  erubis (2.7.0)
45
48
  ffi (1.9.10)
46
- ffi-yajl (2.2.0)
49
+ ffi-yajl (2.2.2)
47
50
  libyajl2 (~> 1.2)
48
51
  hashie (2.1.2)
49
- highline (1.7.2)
52
+ highline (1.7.8)
50
53
  ipaddress (0.8.0)
51
54
  json (1.8.2)
52
55
  librarian (0.1.2)
@@ -58,7 +61,7 @@ GEM
58
61
  minitar (>= 0.5.2)
59
62
  libyajl2 (1.2.0)
60
63
  method_source (0.8.2)
61
- mime-types (2.6.1)
64
+ mime-types (2.99)
62
65
  minitar (0.5.4)
63
66
  minitest (5.6.1)
64
67
  mixlib-authentication (1.3.0)
@@ -66,7 +69,7 @@ GEM
66
69
  mixlib-cli (1.5.0)
67
70
  mixlib-config (2.2.1)
68
71
  mixlib-log (1.6.0)
69
- mixlib-shellout (2.1.0)
72
+ mixlib-shellout (2.2.3)
70
73
  multi_json (1.11.2)
71
74
  net-scp (1.2.1)
72
75
  net-ssh (>= 2.6.5)
@@ -77,7 +80,8 @@ GEM
77
80
  net-ssh (>= 2.6.5)
78
81
  net-ssh-gateway (>= 1.2.0)
79
82
  net-telnet (0.1.1)
80
- ohai (8.5.0)
83
+ ohai (8.7.0)
84
+ chef-config (>= 12.5.0.alpha.1, < 13)
81
85
  ffi (~> 1.9)
82
86
  ffi-yajl (~> 2.2)
83
87
  ipaddress
@@ -90,36 +94,36 @@ GEM
90
94
  systemu (~> 2.6.4)
91
95
  wmi-lite (~> 1.0)
92
96
  plist (3.1.0)
93
- pry (0.10.1)
97
+ pry (0.10.3)
94
98
  coderay (~> 1.1.0)
95
99
  method_source (~> 0.8.1)
96
100
  slop (~> 3.4)
97
101
  rack (1.6.4)
98
102
  rake (10.4.2)
99
- rspec (3.3.0)
100
- rspec-core (~> 3.3.0)
101
- rspec-expectations (~> 3.3.0)
102
- rspec-mocks (~> 3.3.0)
103
- rspec-core (3.3.1)
104
- rspec-support (~> 3.3.0)
105
- rspec-expectations (3.3.0)
103
+ rspec (3.4.0)
104
+ rspec-core (~> 3.4.0)
105
+ rspec-expectations (~> 3.4.0)
106
+ rspec-mocks (~> 3.4.0)
107
+ rspec-core (3.4.1)
108
+ rspec-support (~> 3.4.0)
109
+ rspec-expectations (3.4.0)
106
110
  diff-lcs (>= 1.2.0, < 2.0)
107
- rspec-support (~> 3.3.0)
111
+ rspec-support (~> 3.4.0)
108
112
  rspec-its (1.2.0)
109
113
  rspec-core (>= 3.0.0)
110
114
  rspec-expectations (>= 3.0.0)
111
- rspec-mocks (3.3.1)
115
+ rspec-mocks (3.4.0)
112
116
  diff-lcs (>= 1.2.0, < 2.0)
113
- rspec-support (~> 3.3.0)
114
- rspec-support (3.3.0)
117
+ rspec-support (~> 3.4.0)
118
+ rspec-support (3.4.1)
115
119
  rspec_junit_formatter (0.2.3)
116
120
  builder (< 4)
117
121
  rspec-core (>= 2, < 4, != 2.12.0)
118
- serverspec (2.19.0)
122
+ serverspec (2.24.3)
119
123
  multi_json
120
124
  rspec (~> 3.0)
121
125
  rspec-its
122
- specinfra (~> 2.35)
126
+ specinfra (~> 2.43)
123
127
  sfl (2.2)
124
128
  simplecov (0.10.0)
125
129
  docile (~> 1.1.0)
@@ -127,7 +131,7 @@ GEM
127
131
  simplecov-html (~> 0.10.0)
128
132
  simplecov-html (0.10.0)
129
133
  slop (3.6.0)
130
- specinfra (2.37.1)
134
+ specinfra (2.44.3)
131
135
  net-scp
132
136
  net-ssh (~> 2.7)
133
137
  net-telnet
@@ -144,3 +148,6 @@ DEPENDENCIES
144
148
  chefdepartie!
145
149
  minitest (~> 5.6)
146
150
  simplecov (= 0.10.0)
151
+
152
+ BUNDLED WITH
153
+ 1.10.6
@@ -1,4 +1,4 @@
1
1
  # Store version info
2
2
  module Chefdepartie
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
data/lib/chefdepartie.rb CHANGED
@@ -9,7 +9,7 @@ require_relative 'chefdepartie/databag'
9
9
  module Chefdepartie
10
10
  def self.run(**kwargs)
11
11
  # Load the configuration
12
- config_file = kwargs[:config_file] || ENV['CHEFDEPARTIE_CONFIG']
12
+ config_file = kwargs[:config_file] || ENV['CHEFDEPARTIE_CONFIG'] || ''
13
13
  load_config(config_file, kwargs[:config])
14
14
  background = kwargs[:background]
15
15
 
@@ -49,7 +49,7 @@ module Chefdepartie
49
49
 
50
50
  def self.load_config(config_file, config)
51
51
  # Load config from config file if provided
52
- Chef::Config.from_file(config_file) if File.exist?(config_file)
52
+ Chef::Config.from_file(config_file) if (!config_file.empty? && File.exist?(config_file))
53
53
 
54
54
  # Load config from hash
55
55
  if config && config.is_a?(Hash)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chefdepartie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-10 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef