fpm-fry 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fpm/fry/client.rb +3 -1
- data/lib/fpm/fry/command/cook.rb +2 -2
- data/lib/fpm/fry/source/git.rb +1 -1
- data/lib/fpm/fry/source/patched.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d03481dd318deb8b40460423f2029cb88c6bac211d564ac79a5cee1bb39fc47
|
|
4
|
+
data.tar.gz: cea0a428ec17eb9efd64ca4cb13612f85f807876137f29a649f4445e930a2fe9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a503b0c59cc14c77ed9f68c917f8947458d919a439a79d40abea054e981ff3d47060b52e3a167e649e9e3775901832af088d999ccae99fd3ea30dc055a17ef81
|
|
7
|
+
data.tar.gz: 7164f000cb4591d21a2cd7c776e52d056c33e8523581f6bd864d25889b87b48d38a6e9794dd85ed7520734c88e8562675cc5b857b8bad8804600cb60f367b1de
|
data/lib/fpm/fry/client.rb
CHANGED
|
@@ -44,7 +44,7 @@ class FPM::Fry::Client
|
|
|
44
44
|
ssl_verify_peer: options.fetch(:tlsverify){ false }
|
|
45
45
|
}
|
|
46
46
|
[:client_cert, :client_key, :ssl_ca_file].each do |k|
|
|
47
|
-
if !File.
|
|
47
|
+
if !File.exist?(@tls[k])
|
|
48
48
|
raise ArgumentError.new("#{k} #{@tls[k]} doesn't exist. Did you set DOCKER_CERT_PATH correctly?")
|
|
49
49
|
end
|
|
50
50
|
end
|
|
@@ -228,6 +228,8 @@ class FPM::Fry::Client
|
|
|
228
228
|
when 'unix'
|
|
229
229
|
uri = "unix:///"
|
|
230
230
|
options[:socket] = address
|
|
231
|
+
options[:host] = ""
|
|
232
|
+
options[:hostname] = ""
|
|
231
233
|
when 'tcp'
|
|
232
234
|
if tls.any?
|
|
233
235
|
return agent_for("https://#{address}", tls)
|
data/lib/fpm/fry/command/cook.rb
CHANGED
|
@@ -80,7 +80,7 @@ module FPM; module Fry
|
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
def lint_recipe_file!
|
|
83
|
-
File.
|
|
83
|
+
File.exist?(recipe) || raise(Recipe::NotFound)
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
def lint_recipe!
|
|
@@ -368,7 +368,7 @@ module FPM; module Fry
|
|
|
368
368
|
# Now that we have disabled this for debian we have to reenable if it for
|
|
369
369
|
# all.
|
|
370
370
|
etc = File.expand_path('etc', output.staging_path)
|
|
371
|
-
if File.
|
|
371
|
+
if File.exist?( etc )
|
|
372
372
|
# Config plugin wasn't used. Add everything under /etc
|
|
373
373
|
prefix_length = output.staging_path.size + 1
|
|
374
374
|
added = []
|
data/lib/fpm/fry/source/git.rb
CHANGED
|
@@ -72,7 +72,7 @@ module FPM; module Fry ; module Source
|
|
|
72
72
|
|
|
73
73
|
def update
|
|
74
74
|
begin
|
|
75
|
-
if !File.
|
|
75
|
+
if !File.exist? repodir
|
|
76
76
|
Exec::exec(package.git, "--git-dir=#{repodir}",'init', '--bare', description: "initializing git repository", logger: logger)
|
|
77
77
|
end
|
|
78
78
|
Exec::exec(package.git, "--git-dir=#{repodir}",'fetch','--depth=1', url.to_s, rev, description: 'fetching from remote', logger: logger)
|
|
@@ -118,7 +118,7 @@ module FPM; module Fry ; module Source
|
|
|
118
118
|
raise ArgumentError, "Expected a Hash or a String, got #{file.inspect}"
|
|
119
119
|
end
|
|
120
120
|
options[:file] = File.expand_path(options[:file])
|
|
121
|
-
if !File.
|
|
121
|
+
if !File.exist?(options[:file])
|
|
122
122
|
raise ArgumentError, "File doesn't exist: #{options[:file]}"
|
|
123
123
|
end
|
|
124
124
|
options
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fpm-fry
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maxime Lagresle
|
|
@@ -10,10 +10,10 @@ authors:
|
|
|
10
10
|
- Hannes Georg
|
|
11
11
|
- Julian Tabel
|
|
12
12
|
- Dennis Konert
|
|
13
|
-
autorequire:
|
|
13
|
+
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2023-
|
|
16
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: excon
|
|
@@ -182,7 +182,7 @@ homepage: https://github.com/xing/fpm-fry
|
|
|
182
182
|
licenses:
|
|
183
183
|
- MIT
|
|
184
184
|
metadata: {}
|
|
185
|
-
post_install_message:
|
|
185
|
+
post_install_message:
|
|
186
186
|
rdoc_options: []
|
|
187
187
|
require_paths:
|
|
188
188
|
- lib
|
|
@@ -197,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
197
197
|
- !ruby/object:Gem::Version
|
|
198
198
|
version: '0'
|
|
199
199
|
requirements: []
|
|
200
|
-
rubygems_version: 3.
|
|
201
|
-
signing_key:
|
|
200
|
+
rubygems_version: 3.4.10
|
|
201
|
+
signing_key:
|
|
202
202
|
specification_version: 4
|
|
203
203
|
summary: FPM Fry
|
|
204
204
|
test_files: []
|