fpm-fry 0.6.2 → 0.6.3

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
  SHA256:
3
- metadata.gz: 4378e8616d6213898f76ec92b81ceed3cf591ac3f95dfb8d2cea75ea6ca0f2db
4
- data.tar.gz: e148dd2f1c9326046fb184332527551d46240efd029d713ffedaa41b6ad690bc
3
+ metadata.gz: 3d03481dd318deb8b40460423f2029cb88c6bac211d564ac79a5cee1bb39fc47
4
+ data.tar.gz: cea0a428ec17eb9efd64ca4cb13612f85f807876137f29a649f4445e930a2fe9
5
5
  SHA512:
6
- metadata.gz: c6e0568bdf77a28ca62b093c3159e5a2a0eb13a157ed462ef6b77d2729a886f04434ab4c83ffe69a23e09c813053aa68730060a52f1ec3e3cd0ea6387702fba9
7
- data.tar.gz: ac6d77bef4612f2252b27dfcb2926da85c9f6b244cf8705a8d028de63da5f2de4f62febe4a2fc23d0e32aa88d656369a7815110575c0e8b91bf1f0f34b6a2286
6
+ metadata.gz: a503b0c59cc14c77ed9f68c917f8947458d919a439a79d40abea054e981ff3d47060b52e3a167e649e9e3775901832af088d999ccae99fd3ea30dc055a17ef81
7
+ data.tar.gz: 7164f000cb4591d21a2cd7c776e52d056c33e8523581f6bd864d25889b87b48d38a6e9794dd85ed7520734c88e8562675cc5b857b8bad8804600cb60f367b1de
@@ -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.exists?(@tls[k])
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)
@@ -80,7 +80,7 @@ module FPM; module Fry
80
80
  end
81
81
 
82
82
  def lint_recipe_file!
83
- File.exists?(recipe) || raise(Recipe::NotFound)
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.exists?( etc )
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 = []
@@ -72,7 +72,7 @@ module FPM; module Fry ; module Source
72
72
 
73
73
  def update
74
74
  begin
75
- if !File.exists? repodir
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.exists?(options[: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.2
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-04-18 00:00:00.000000000 Z
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.1.6
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: []