rake_docker 0.15.0 → 0.15.1.pre1

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: 29746fb2c3221f853db0b22533f38d91a5a6a9cf854f98b31577a2e83170bbed
4
- data.tar.gz: 3f9c2cfba1582184574764f787d64d7b035f0747d8147fda556cc56c9c8816bf
3
+ metadata.gz: a4b1a06c285ce1ddafeae9ce737defbbd811621b480441650c014c76d8260500
4
+ data.tar.gz: 981cb7729e1fa0c47ac432619271bc7a2d026a74753ea0c74e9bfa3696d4c8a3
5
5
  SHA512:
6
- metadata.gz: 604560bc2bc1f1b1fda83eefc6a143e9179816478d2742150da6f4d8cdc92dc3b61e94fcbb7656df4446a8a5a23329fb27cd1b2f274f5a5b0de3290c17bce709
7
- data.tar.gz: ffaf4da06d6ac010bc0fd9f3bebac6fabffbb39a00f1898afc4ea12206ebca14727b6369f32933466efd52de733f544efebde7ce56b1592eccbbb4d57fb4bce9
6
+ metadata.gz: e35d7ce1c8f0d8df566df4b4106cf9d2df647aea811b436917476b51a3456044d4f96e294e448aa315bcccaa71b62098f18e0d8239c865fa3fcf0910c9b8b54f
7
+ data.tar.gz: ae85a25ea6a2b44b7a0f25862e4b41a033c302439f0391ca16348cfe8f8032878e57be6bcf79f3361f31f2f57632205a8c19c1adf7c618f56bfb77621788896c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.16.0 (October 18th, 2018)
2
+
3
+ IMPROVEMENTS:
4
+
5
+ * The `All` and `Build` tasks now support `build_args` being passed as a hash.
6
+
1
7
  ## 0.11.0 (January 9th, 2018)
2
8
 
3
9
  IMPROVEMENTS:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_docker (0.15.0)
4
+ rake_docker (0.15.1.pre1)
5
5
  aws-sdk (~> 2.10)
6
6
  docker-api (~> 1.34)
7
7
 
@@ -71,4 +71,4 @@ DEPENDENCIES
71
71
  simplecov (~> 0.13)
72
72
 
73
73
  BUNDLED WITH
74
- 1.16.4
74
+ 1.16.6
@@ -26,6 +26,8 @@ module RakeDocker
26
26
 
27
27
  parameter :credentials
28
28
 
29
+ parameter :build_args
30
+
29
31
  parameter :clean_task_name, :default => :clean
30
32
  parameter :prepare_task_name, :default => :prepare
31
33
  parameter :build_task_name, :default => :build
@@ -65,6 +67,7 @@ module RakeDocker
65
67
  t.image_name = image_name
66
68
  t.repository_name = repository_name
67
69
  t.work_directory = work_directory
70
+ t.build_args = build_args
68
71
  t.credentials = credentials
69
72
  t.prepare_task = prepare_task_name
70
73
  end
@@ -12,6 +12,8 @@ module RakeDocker
12
12
 
13
13
  parameter :credentials
14
14
 
15
+ parameter :build_args
16
+
15
17
  parameter :work_directory, :required => true
16
18
 
17
19
  parameter :prepare_task, :default => :prepare
@@ -40,9 +42,12 @@ module RakeDocker
40
42
 
41
43
  Docker.authenticate!(derived_credentials) if derived_credentials
42
44
 
45
+ options = {t: repository_name}
46
+ options = options.merge(buildargs: build_args) if build_args
47
+
43
48
  Docker::Image.build_from_dir(
44
49
  File.join(work_directory, image_name),
45
- {t: repository_name}) do |chunk|
50
+ options) do |chunk|
46
51
  $stdout.puts chunk
47
52
  end
48
53
  end
@@ -1,3 +1,3 @@
1
1
  module RakeDocker
2
- VERSION = '0.15.0'
2
+ VERSION = '0.15.1.pre1'
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.15.0
4
+ version: 0.15.1.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api
@@ -207,9 +207,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
207
  version: '2.0'
208
208
  required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  requirements:
210
- - - ">="
210
+ - - ">"
211
211
  - !ruby/object:Gem::Version
212
- version: '0'
212
+ version: 1.3.1
213
213
  requirements: []
214
214
  rubyforge_project:
215
215
  rubygems_version: 2.7.7