rake_docker 2.4.0.pre.3 → 2.4.0.pre.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_docker/container.rb +5 -5
- data/lib/rake_docker/tasks/provision.rb +0 -7
- data/lib/rake_docker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb8d573f2ea78346d1d8f2b89a6d34108f756acb83a8396166b4280f43377760
|
4
|
+
data.tar.gz: b35f3a9c91b4ad2a8251a3d8b70f27b330328a55b9154811e445cd3854b646eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e91aa6bfb534a03d736523b62832c2e60786b1f257ebfe1ce51ed77b5c72055d7ea24a8fe060b4e8781003867251506e16c23efc21e3c850f0207dfb5b0671c0
|
7
|
+
data.tar.gz: c96d23a7c3e7735b62685830bfa3ae84cfd5eb993e5d4220ffef55c52ce6d6c06fa817fa79510901211d28a6f10a7c407619963d05225d21ca6464ae74c64f10
|
data/Gemfile.lock
CHANGED
@@ -26,12 +26,12 @@ module RakeDocker
|
|
26
26
|
]
|
27
27
|
|
28
28
|
class NullReporter
|
29
|
-
REPORTER_MESSAGES.each { |message| define_method(message) {} }
|
29
|
+
REPORTER_MESSAGES.each { |message| define_method(message) { |*_| } }
|
30
30
|
end
|
31
31
|
|
32
32
|
class PrintingReporter
|
33
33
|
def checking_if_container_exists(name)
|
34
|
-
puts "Checking to see if
|
34
|
+
puts "Checking to see if /#{name} exists..."
|
35
35
|
end
|
36
36
|
|
37
37
|
def container_exists(container)
|
@@ -39,7 +39,7 @@ module RakeDocker
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def container_does_not_exist(name)
|
42
|
-
puts "
|
42
|
+
puts "/#{name} does not exist. Continuing."
|
43
43
|
end
|
44
44
|
|
45
45
|
def checking_if_image_available(image)
|
@@ -102,7 +102,7 @@ module RakeDocker
|
|
102
102
|
puts 'Stopping...'
|
103
103
|
end
|
104
104
|
|
105
|
-
def container_stopped(
|
105
|
+
def container_stopped(container)
|
106
106
|
print "#{container.json['Name']} stopped. "
|
107
107
|
end
|
108
108
|
|
@@ -110,7 +110,7 @@ module RakeDocker
|
|
110
110
|
puts 'Deleting...'
|
111
111
|
end
|
112
112
|
|
113
|
-
def container_deleted(
|
113
|
+
def container_deleted(container)
|
114
114
|
puts "#{container.json['Name']} deleted."
|
115
115
|
end
|
116
116
|
|
@@ -21,12 +21,6 @@ module RakeDocker
|
|
21
21
|
|
22
22
|
action do |t|
|
23
23
|
puts "Provisioning #{t.container_name} container"
|
24
|
-
puts t.container_name
|
25
|
-
puts t.image
|
26
|
-
puts t.ports
|
27
|
-
puts t.environment
|
28
|
-
puts t.ready_check
|
29
|
-
puts t.reporter
|
30
24
|
provisioner = Container::Provisioner.new(
|
31
25
|
t.container_name,
|
32
26
|
t.image,
|
@@ -34,7 +28,6 @@ module RakeDocker
|
|
34
28
|
environment: t.environment,
|
35
29
|
ready?: t.ready_check,
|
36
30
|
reporter: t.reporter)
|
37
|
-
puts "Construction successful. Executing."
|
38
31
|
provisioner.execute
|
39
32
|
end
|
40
33
|
end
|
data/lib/rake_docker/version.rb
CHANGED