rake_docker 2.3.0 → 2.4.0.pre.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: 27b58d41ca0440a72eda5496bd31df959469b6808358249584971ead4abc77b5
4
- data.tar.gz: fd43705aeb7269feac00eebd8bc66f16b43c830c94b5957fc17e214a1244725a
3
+ metadata.gz: b42eea561483ccc1cfb7338caa9c992c2ca46bd88201919c17c76ede50d885e7
4
+ data.tar.gz: beae6a8c44b4305f1f3757699278aaf02b02738204b621cc586ef6d48e448d7c
5
5
  SHA512:
6
- metadata.gz: 2233fd64db04cd26e642086c251e111683e0f08d92df0684dc55cfeb6585a643cefb436ba9001caf996615bc81664e2791ea142fe01c21c5e88443087740a776
7
- data.tar.gz: 0164d0842e678ba10990c36245eb7e554060f4db0ec6f52597854cb243dc5004350f8f0726ee902e805b0fdaad07faa276c7641e225b161c897d71b06b660089
6
+ metadata.gz: b02d4a1c4e6a411125f897651b3373e60bd779d136337579a9f6e5d1e19e899bf520f3c6a5faf5cfae447dfe548ef68c3b6997cfbdf354b83c50fa69f61938b7
7
+ data.tar.gz: f3db6d4e2732b914094d8937a6b21c6f047f9ecdbb1377ae6efc1a19d1824ac8c28da88c25b760305aef3f0b0f2358e12d90cba7142fe2b9fa3a0a4547550e2f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_docker (2.3.0)
4
+ rake_docker (2.4.0.pre.1)
5
5
  aws-sdk-ecr (~> 1.2)
6
6
  colored2 (~> 3.1)
7
7
  docker-api (~> 1.34)
@@ -29,6 +29,96 @@ module RakeDocker
29
29
  REPORTER_MESSAGES.each { |message| define_method(message) {} }
30
30
  end
31
31
 
32
+ class PrintingReporter
33
+ def checking_if_container_exists(name)
34
+ puts "Checking to see if #{name} exists..."
35
+ end
36
+
37
+ def container_exists(container)
38
+ print "#{container.json['Name']} exists. "
39
+ end
40
+
41
+ def container_does_not_exist(name)
42
+ puts "#{name} does not exist. Continuing."
43
+ end
44
+
45
+ def checking_if_image_available(image)
46
+ puts "Checking if image #{image} is available locally..."
47
+ end
48
+
49
+ def image_available(image)
50
+ puts "Image #{image} available. Continuing."
51
+ end
52
+
53
+ def image_not_available(image)
54
+ print "Image #{image} not found. "
55
+ end
56
+
57
+ def pulling_image(_)
58
+ puts 'Pulling.'
59
+ end
60
+
61
+ def image_pulled(image)
62
+ puts "Image #{image} pulled. Continuing."
63
+ end
64
+
65
+ def creating_container(_, _)
66
+ puts 'Creating...'
67
+ end
68
+
69
+ def container_created(container)
70
+ print "#{container.json['Name']} created with ID: #{container.id}. "
71
+ end
72
+
73
+ def checking_if_container_running(_)
74
+ puts 'Checking to see if it is running...'
75
+ end
76
+
77
+ def container_running(_)
78
+ puts 'Container is running. Continuing.'
79
+ end
80
+
81
+ def container_not_running(_)
82
+ print 'Container is not running. '
83
+ end
84
+
85
+ def starting_container(_)
86
+ puts 'Starting...'
87
+ end
88
+
89
+ def container_started(_)
90
+ puts 'Container started. Continuing.'
91
+ end
92
+
93
+ def waiting_for_container_to_be_ready(_)
94
+ puts 'Waiting for container to be ready...'
95
+ end
96
+
97
+ def container_ready(_)
98
+ puts 'Container ready. Continuing.'
99
+ end
100
+
101
+ def stopping_container(_)
102
+ puts 'Stopping...'
103
+ end
104
+
105
+ def container_stopped(_)
106
+ print "#{container.json['Name']} stopped. "
107
+ end
108
+
109
+ def deleting_container(_)
110
+ puts 'Deleting...'
111
+ end
112
+
113
+ def container_deleted(_)
114
+ puts "#{container.json['Name']} deleted."
115
+ end
116
+
117
+ def done
118
+ puts 'Done.'
119
+ end
120
+ end
121
+
32
122
  module Utilities
33
123
  def find_container(name)
34
124
  begin
@@ -12,7 +12,7 @@ module RakeDocker
12
12
 
13
13
  parameter :container_name, :required => true
14
14
 
15
- parameter :reporter, default: Container::NullReporter.new
15
+ parameter :reporter, default: Container::PrintingReporter.new
16
16
 
17
17
  action do |t|
18
18
  puts "Destroying #{t.container_name} container"
@@ -17,7 +17,7 @@ module RakeDocker
17
17
 
18
18
  parameter :ready_check
19
19
 
20
- parameter :reporter, default: Container::NullReporter.new
20
+ parameter :reporter, default: Container::PrintingReporter.new
21
21
 
22
22
  action do |t|
23
23
  puts "Provisioning #{t.container_name} container"
@@ -1,3 +1,3 @@
1
1
  module RakeDocker
2
- VERSION = '2.3.0'
2
+ VERSION = '2.4.0.pre.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-13 00:00:00.000000000 Z
11
+ date: 2020-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api
@@ -242,9 +242,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  version: '2.6'
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  requirements:
245
- - - ">="
245
+ - - ">"
246
246
  - !ruby/object:Gem::Version
247
- version: '0'
247
+ version: 1.3.1
248
248
  requirements: []
249
249
  rubygems_version: 3.0.1
250
250
  signing_key: