cheffish 17.1.5 → 17.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +15 -4
- data/Rakefile +2 -2
- data/cheffish.gemspec +1 -0
- data/lib/chef/resource/private_key.rb +1 -3
- data/lib/cheffish/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17d1aca4a7ae6e0769e3c2f2dfbc0b658f141fa170eee02f9540d21657456da4
|
4
|
+
data.tar.gz: f47af0396c10e0301bec26bce5fcc2b7c0fc91a8ae13169f0a6f5c5ab3aa0849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35a9fac403e9aee67717bcdbdda99aed23bbc52667f15ee7a63d2defec29b64a51a9b351b5d203244b4526dba0251b7e105e65d378a8f6d0e608f4d02221c548
|
7
|
+
data.tar.gz: 65af1d611cdf2cbde5724881077fa66d0841403c08c24dac7b95efb5e1aaf07c46a599c0d7654a26646c8f8c71ea8e3ba69920b5464e74b65baecd129e1eb58e
|
data/Gemfile
CHANGED
@@ -3,7 +3,7 @@ source "https://rubygems.org"
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
group :development do
|
6
|
-
gem "
|
6
|
+
gem "cookstyle", "~> 7.32.8"
|
7
7
|
gem "rake"
|
8
8
|
gem "rspec", "~> 3.0"
|
9
9
|
end
|
@@ -14,8 +14,19 @@ if ENV["GEMFILE_MOD"]
|
|
14
14
|
instance_eval(ENV["GEMFILE_MOD"])
|
15
15
|
else
|
16
16
|
group :development do
|
17
|
-
#
|
18
|
-
|
19
|
-
|
17
|
+
# chef 17 is on 3.0
|
18
|
+
# chef 18 is on 3.1
|
19
|
+
case RUBY_VERSION
|
20
|
+
when /^3\.0/
|
21
|
+
gem "chef", "~> 17.0"
|
22
|
+
gem "ohai", "~> 17.0"
|
23
|
+
when /^3\.1/
|
24
|
+
gem "chef", "~> 18.0"
|
25
|
+
gem "ohai", "~> 18.0"
|
26
|
+
else
|
27
|
+
# go with the latest, unbounded
|
28
|
+
gem "chef"
|
29
|
+
gem "ohai"
|
30
|
+
end
|
20
31
|
end
|
21
32
|
end
|
data/Rakefile
CHANGED
@@ -14,14 +14,14 @@ rescue LoadError
|
|
14
14
|
end
|
15
15
|
|
16
16
|
begin
|
17
|
-
require "chefstyle"
|
17
|
+
require "cookstyle/chefstyle"
|
18
18
|
require "rubocop/rake_task"
|
19
19
|
desc "Run Chefstyle tests"
|
20
20
|
RuboCop::RakeTask.new(:style) do |task|
|
21
21
|
task.options += ["--display-cop-names", "--no-color"]
|
22
22
|
end
|
23
23
|
rescue LoadError
|
24
|
-
puts "
|
24
|
+
puts "cookstyle gem is not installed. bundle install first to make sure all dependencies are installed."
|
25
25
|
end
|
26
26
|
|
27
27
|
begin
|
data/cheffish.gemspec
CHANGED
@@ -93,7 +93,6 @@ class Chef
|
|
93
93
|
(!current_private_key ||
|
94
94
|
current_resource.size != new_resource.size ||
|
95
95
|
current_resource.type != new_resource.type))
|
96
|
-
|
97
96
|
case new_resource.type
|
98
97
|
when :rsa
|
99
98
|
if new_resource.exponent
|
@@ -137,7 +136,7 @@ class Chef
|
|
137
136
|
converge_by "change format of #{new_resource.type} private key #{new_path} from #{current_resource.format} to #{new_resource.format}" do
|
138
137
|
write_private_key(current_private_key)
|
139
138
|
end
|
140
|
-
elsif RUBY_PLATFORM !~ /mswin|
|
139
|
+
elsif RUBY_PLATFORM !~ /mswin|mingw|windows/ && (@current_file_mode & 0077) != 0
|
141
140
|
new_mode = @current_file_mode & 07700
|
142
141
|
converge_by "change mode of private key #{new_path} to #{new_mode.to_s(8)}" do
|
143
142
|
::File.chmod(new_mode, new_path)
|
@@ -249,7 +248,6 @@ class Chef
|
|
249
248
|
else
|
250
249
|
resource.action :delete
|
251
250
|
end
|
252
|
-
|
253
251
|
@current_resource = resource
|
254
252
|
end
|
255
253
|
end
|
data/lib/cheffish/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheffish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 17.1.
|
4
|
+
version: 17.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-zero
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '17.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: logger
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.6.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "<"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.6.0
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: net-ssh
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
155
|
- !ruby/object:Gem::Version
|
142
156
|
version: '0'
|
143
157
|
requirements: []
|
144
|
-
rubygems_version: 3.
|
158
|
+
rubygems_version: 3.2.3
|
145
159
|
signing_key:
|
146
160
|
specification_version: 4
|
147
161
|
summary: A set of Chef resources for configuring Chef Infra.
|