rake_docker 0.7.4 → 0.8.0

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
  SHA1:
3
- metadata.gz: 24c33eb2589eb236929fe3964edc3319bf8bac1e
4
- data.tar.gz: 8b3bb93856370edf77ef77113f3c7b3f95cd0e10
3
+ metadata.gz: abb11b10f1a836d2f4ceeb0f80aad60e78ae487f
4
+ data.tar.gz: b12b5432dc2daedb1e122fe05e08bafa48d87b50
5
5
  SHA512:
6
- metadata.gz: 1c5ff4663e7c0bcc1a742fd8fd82a254b59037804dc2879c29c94d250145bb1e70328e75a806e65820b241bd9c520e6053b0182572ae5ab35611dedfb1ba0363
7
- data.tar.gz: 76308ae6295dd5bd3b7d225849f7c7b055116867f98bcb81a79e9814e9111c50f45593d71949ca27bc16dcca7096d25c26e089387fedc739e8d23ddb56430d67
6
+ metadata.gz: 5ef7a5cea479e5af5ec1d60d0bb5ace9167011f45f7037432f930d750f1ae40fa5698dceefdd2981fc6093c18a03a1f7b2770ff570f707f869ed00eaca345024
7
+ data.tar.gz: 4e2f808611f404f006060144d8422427b2a2ad9206727d508bbf494e2e3b80fe5671c98409c80e67da4b778c023bcc345305e295e01c8c200d6c306c290e675c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_docker (0.7.4)
4
+ rake_docker (0.8.0)
5
5
  aws-sdk (~> 2.10)
6
6
  docker-api (~> 1.33)
7
7
 
@@ -2,4 +2,5 @@ require_relative 'tasks/clean'
2
2
  require_relative 'tasks/prepare'
3
3
  require_relative 'tasks/build'
4
4
  require_relative 'tasks/tag'
5
- require_relative 'tasks/push'
5
+ require_relative 'tasks/push'
6
+ require_relative 'tasks/all'
@@ -0,0 +1,84 @@
1
+ require 'docker'
2
+ require_relative 'clean'
3
+ require_relative 'prepare'
4
+ require_relative 'build'
5
+ require_relative 'tag'
6
+ require_relative 'push'
7
+ require_relative '../tasklib'
8
+
9
+ module RakeDocker
10
+ module Tasks
11
+ class All < TaskLib
12
+ parameter :containing_namespace
13
+
14
+ parameter :image_name, :required => true
15
+ parameter :repository_name, :required => true
16
+ parameter :repository_url, :required => true
17
+
18
+ parameter :work_directory, :required => true
19
+
20
+ parameter :copy_spec, :default => []
21
+ parameter :create_spec, :default => []
22
+
23
+ parameter :tags, :required => true
24
+
25
+ parameter :credentials
26
+
27
+ parameter :clean_task_name, :default => :clean
28
+ parameter :prepare_task_name, :default => :prepare
29
+ parameter :build_task_name, :default => :build
30
+ parameter :tag_task_name, :default => :tag
31
+ parameter :push_task_name, :default => :push
32
+
33
+ alias namespace= containing_namespace=
34
+
35
+ def define
36
+ if containing_namespace
37
+ namespace containing_namespace do
38
+ define_tasks
39
+ end
40
+ else
41
+ define_tasks
42
+ end
43
+ end
44
+
45
+ private
46
+
47
+ def define_tasks
48
+ Clean.new do |t|
49
+ t.name = clean_task_name
50
+ t.image_name = image_name
51
+ t.work_directory = work_directory
52
+ end
53
+ Prepare.new do |t|
54
+ t.name = prepare_task_name
55
+ t.image_name = image_name
56
+ t.work_directory = work_directory
57
+ t.copy_spec = copy_spec
58
+ t.create_spec = create_spec
59
+ end
60
+ Build.new do |t|
61
+ t.name = build_task_name
62
+ t.image_name = image_name
63
+ t.repository_name = repository_name
64
+ t.work_directory = work_directory
65
+ t.prepare_task = prepare_task_name
66
+ end
67
+ Tag.new do |t|
68
+ t.name = tag_task_name
69
+ t.image_name = image_name
70
+ t.repository_name = repository_name
71
+ t.repository_url = repository_url
72
+ t.tags = tags
73
+ end
74
+ Push.new do |t|
75
+ t.name = push_task_name
76
+ t.image_name = image_name
77
+ t.repository_url = repository_url
78
+ t.tags = tags
79
+ t.credentials = credentials
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
@@ -1,3 +1,3 @@
1
1
  module RakeDocker
2
- VERSION = '0.7.4'
2
+ VERSION = '0.8.0'
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: 0.7.4
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-10 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api
@@ -161,6 +161,7 @@ files:
161
161
  - lib/rake_docker/exceptions.rb
162
162
  - lib/rake_docker/tasklib.rb
163
163
  - lib/rake_docker/tasks.rb
164
+ - lib/rake_docker/tasks/all.rb
164
165
  - lib/rake_docker/tasks/build.rb
165
166
  - lib/rake_docker/tasks/clean.rb
166
167
  - lib/rake_docker/tasks/prepare.rb