indocker 0.1.17 → 0.3.1

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: 87f0d247cd6a4aa8f3958d6b9d9aef1dfd879c15651c9e4c01c9e15e7bffe0a0
4
- data.tar.gz: e0391bebb9cd04117a68e904caef9ccd72b586fd10a8e2ba02b3673b389de8de
3
+ metadata.gz: 7db1ee43dc77d64ef756d9344d1a90086034cdb3aea3aabb81e215e2142b5e11
4
+ data.tar.gz: af8d6b04b0a728341fab4059abbec6a89edcab45933e03cab43df6a5baa4d9f6
5
5
  SHA512:
6
- metadata.gz: baad11d2671bb96f35cfed12ca80ac713d135ee19a4b8e7222ab91685a9f5efd65a84d539425cc68e7f786eca689e451b46ea2e503569037b080aee422f01fe2
7
- data.tar.gz: 876a4b96e5a96f7a1f9ffff7138597e413739a84c4bc1dbe8b0adb18073e431ecef0da966b7c7bf861d3f6792de8ec21e43f5970aae6ccb3b5813b095700a787
6
+ metadata.gz: 5b62b0cfa0f4297e739bd3100e77d959f0cba6a3dc2687bef9b37c6cad50a5e07916b96ab91aa906e22499fd3430ab965b354f4152d5b5c8fe0929dbcb8ca493
7
+ data.tar.gz: da4caa93850b2279328e436986693928741f4ba8d8c0a86c4d609f4826c62604aa90dab6de2c7f409480133954f1c8c48f856758b4f1a324dc6cea2090fac9d6
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.0
1
+ 3.1.2
data/Gemfile.lock CHANGED
@@ -1,38 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- indocker (0.1.17)
4
+ indocker (0.3.1)
5
5
  net-ssh
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  coderay (1.1.3)
11
- diff-lcs (1.3)
12
- docile (1.3.2)
11
+ diff-lcs (1.5.0)
12
+ docile (1.4.0)
13
13
  method_source (1.0.0)
14
- net-ssh (6.1.0)
15
- pry (0.13.1)
14
+ net-ssh (7.0.1)
15
+ pry (0.14.1)
16
16
  coderay (~> 1.1)
17
17
  method_source (~> 1.0)
18
18
  rake (12.3.3)
19
- rspec (3.9.0)
20
- rspec-core (~> 3.9.0)
21
- rspec-expectations (~> 3.9.0)
22
- rspec-mocks (~> 3.9.0)
23
- rspec-core (3.9.1)
24
- rspec-support (~> 3.9.1)
25
- rspec-expectations (3.9.0)
19
+ rspec (3.12.0)
20
+ rspec-core (~> 3.12.0)
21
+ rspec-expectations (~> 3.12.0)
22
+ rspec-mocks (~> 3.12.0)
23
+ rspec-core (3.12.0)
24
+ rspec-support (~> 3.12.0)
25
+ rspec-expectations (3.12.0)
26
26
  diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.9.0)
28
- rspec-mocks (3.9.1)
27
+ rspec-support (~> 3.12.0)
28
+ rspec-mocks (3.12.0)
29
29
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.9.0)
31
- rspec-support (3.9.2)
30
+ rspec-support (~> 3.12.0)
31
+ rspec-support (3.12.0)
32
32
  simplecov (0.18.5)
33
33
  docile (~> 1.1)
34
34
  simplecov-html (~> 0.11)
35
- simplecov-html (0.12.2)
35
+ simplecov-html (0.12.3)
36
36
 
37
37
  PLATFORMS
38
38
  ruby
@@ -10,7 +10,7 @@ class Indocker::Containers::RestartPolicy
10
10
 
11
11
  def restart?(container, timestamp)
12
12
  file = timestamp_file(container)
13
- return true if !File.exists?(file)
13
+ return true if !File.exist?(file)
14
14
 
15
15
  last_timestamp = File.read(file).strip
16
16
  timestamp != last_timestamp
@@ -24,7 +24,7 @@ class Indocker::DockerRunArgs
24
24
 
25
25
  path = Indocker::EnvFileHelper.path(env_file)
26
26
 
27
- if !File.exists?(path)
27
+ if !File.exist?(path)
28
28
  raise ArgumentError.new("env file not found: #{path}")
29
29
  end
30
30
 
@@ -61,7 +61,7 @@ class Indocker::DockerRunArgs
61
61
  end
62
62
 
63
63
  sysctl = container.get_start_option(:sysctl)
64
-
64
+
65
65
  if sysctl
66
66
  Array(sysctl).each do |val|
67
67
  args.push("--sysctl #{val}")
@@ -6,7 +6,7 @@ class Indocker::Images::ImageBuilder
6
6
  @image = Indocker::Images::Image.new(name)
7
7
  dockerfile = File.join(dir, 'Dockerfile')
8
8
 
9
- if File.exists?(dockerfile)
9
+ if File.exist?(dockerfile)
10
10
  @image.set_dockerfile(dockerfile)
11
11
  end
12
12
 
@@ -35,7 +35,7 @@ class Indocker::Images::ImageBuilder
35
35
  end
36
36
 
37
37
  def dockerfile(path)
38
- if !File.exists?(path)
38
+ if !File.exist?(path)
39
39
  raise ArgumentError.new("Dockerfile was not found in #{path}")
40
40
  end
41
41
 
@@ -104,7 +104,11 @@ class Indocker::Launchers::ConfigurationDeployer
104
104
 
105
105
  Thread
106
106
  .list
107
- .each { |t| t.join if t != Thread.current }
107
+ .each { |t|
108
+ if t != Thread.current
109
+ t.join if !t.stop?
110
+ end
111
+ }
108
112
  ensure
109
113
  build_server_pool.close_sessions if build_server_pool
110
114
  deployer.close_sessions if deployer
@@ -1,3 +1,3 @@
1
1
  module Indocker
2
- VERSION = "0.1.17"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov
8
8
  - Iskander Khaziev
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-09-08 00:00:00.000000000 Z
12
+ date: 2023-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
@@ -206,7 +206,7 @@ homepage: https://github.com/ArtStation/indocker
206
206
  licenses:
207
207
  - MIT
208
208
  metadata: {}
209
- post_install_message:
209
+ post_install_message:
210
210
  rdoc_options: []
211
211
  require_paths:
212
212
  - lib
@@ -221,8 +221,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  requirements: []
224
- rubygems_version: 3.0.8
225
- signing_key:
224
+ rubygems_version: 3.3.24
225
+ signing_key:
226
226
  specification_version: 4
227
227
  summary: Docker Containers Deployment
228
228
  test_files: []