cheffish 0.9.1 → 0.9.2

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: 2f7effb9feff17c98c38172fcce48b2dc65b538a
4
- data.tar.gz: 050c00b286437574276e7b10a4e5fac430823756
3
+ metadata.gz: edaf9501687672d10bd9f172390ed551ab53ee52
4
+ data.tar.gz: af33156dfc99d628b579f1dcfff6451f325fd513
5
5
  SHA512:
6
- metadata.gz: 002bf3474f05d454bc3e482dd00481bb7954b634ac02623420dab97b54efc09599096ef2230dcb0716ee5a3f517f9187d0ac5b09b254840ddd577616ad2919c9
7
- data.tar.gz: b47b797b32d7e459d7ddf95ddd737c61063c647a5d03e60856ad9ef3267402624992a1b2453b2114957dcd48fac02fca2c6c346a029963821880dc57f9831d61
6
+ metadata.gz: 1b965c4f29a566155b2fee660a43f46c5c819534d1ed977168288999811a15cb016182ade13fe4a7f8b2b207f71ed45b691303f0ba6110e77f0dd42ed859ae9e
7
+ data.tar.gz: 726da33032db08f09b6e1b4e61bf15247dd94842be608f4d4a22fadbb37fec360703162736a9a8d2aa5330404a17f802ff8f1cd20e145f369699880542a41e6d
data/lib/cheffish.rb CHANGED
@@ -36,7 +36,11 @@ module Cheffish
36
36
  end
37
37
 
38
38
  def self.load_chef_config(chef_config = Chef::Config)
39
- chef_config.config_file = Chef::Knife.locate_config_file
39
+ if ::Gem::Version.new(::Chef::VERSION) >= ::Gem::Version.new('12.0.0')
40
+ chef_config.config_file = ::Chef::Knife.chef_config_dir
41
+ else
42
+ chef_config.config_file = ::Chef::Knife.locate_config_file
43
+ end
40
44
  config_fetcher = Chef::ConfigFetcher.new(chef_config.config_file, chef_config.config_file_jail)
41
45
  if chef_config.config_file.nil?
42
46
  Chef::Log.warn("No config file found or specified on command line, using command line options.")
@@ -1,3 +1,3 @@
1
1
  module Cheffish
2
- VERSION = '0.9.1'
2
+ VERSION = '0.9.2'
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheffish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-16 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-zero
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  description: A library to manipulate Chef in Chef.
@@ -60,9 +60,9 @@ extra_rdoc_files:
60
60
  - README.md
61
61
  - LICENSE
62
62
  files:
63
- - Rakefile
64
63
  - LICENSE
65
64
  - README.md
65
+ - Rakefile
66
66
  - lib/chef/provider/chef_acl.rb
67
67
  - lib/chef/provider/chef_client.rb
68
68
  - lib/chef/provider/chef_container.rb
@@ -93,6 +93,7 @@ files:
93
93
  - lib/chef/resource/chef_user.rb
94
94
  - lib/chef/resource/private_key.rb
95
95
  - lib/chef/resource/public_key.rb
96
+ - lib/cheffish.rb
96
97
  - lib/cheffish/actor_provider_base.rb
97
98
  - lib/cheffish/basic_chef_client.rb
98
99
  - lib/cheffish/chef_provider_base.rb
@@ -104,7 +105,6 @@ files:
104
105
  - lib/cheffish/server_api.rb
105
106
  - lib/cheffish/version.rb
106
107
  - lib/cheffish/with_pattern.rb
107
- - lib/cheffish.rb
108
108
  - spec/functional/fingerprint_spec.rb
109
109
  - spec/functional/merged_config_spec.rb
110
110
  - spec/integration/chef_acl_spec.rb
@@ -130,17 +130,17 @@ require_paths:
130
130
  - lib
131
131
  required_ruby_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - '>='
133
+ - - ">="
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - '>='
138
+ - - ">="
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.0.14
143
+ rubygems_version: 2.2.2
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: A library to manipulate Chef in Chef.