capistrano-docker 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/capistrano-docker.gemspec +1 -1
- data/lib/capistrano/tasks/docker.rake +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a9a3814c2df2df399fb49f89ba238fff3f0144b
|
4
|
+
data.tar.gz: 623b50236e66de5e1dfd34335da693eb8c7f0211
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3b1b3f484856cc563a6f29528ee95dc0fb2496675fafd802aa6b0e93e0795c6e8d6d705c16d4dc043f3f011e120d514fe86e4ce6f162f7f10e01dc66b47bd52
|
7
|
+
data.tar.gz: 07dcb2fea450ba8f3e3ef6461e529f6564683dfe767bd8227a15de5ebec982b50ba1a85db88805282bb62aa64be80571bd6b4a7ee199db34306a52d805205cb9
|
data/capistrano-docker.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'capistrano-docker'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.7'
|
8
8
|
spec.authors = ["Ross Riley"]
|
9
9
|
spec.email = ["riley.ross@gmail.com"]
|
10
10
|
spec.description = %q{Docker support for Capistrano 3.x}
|
@@ -18,6 +18,10 @@ namespace :docker do
|
|
18
18
|
execute build_run_command
|
19
19
|
end
|
20
20
|
end
|
21
|
+
|
22
|
+
task :run do
|
23
|
+
execute build_run_command
|
24
|
+
end
|
21
25
|
|
22
26
|
def build_run_command()
|
23
27
|
cmd = "docker run "
|
@@ -39,6 +43,9 @@ namespace :docker do
|
|
39
43
|
cmd << "-e APP_USER='#{fetch(:app_username)}' "
|
40
44
|
cmd << "-e APP_PASS='#{fetch(:app_password)}' "
|
41
45
|
cmd << "-e APP_DB='#{fetch(:app_db)}' "
|
46
|
+
fetch(:environment, {}).each do |var,value|
|
47
|
+
cmd << "-e "+var+"='"+val+"' "
|
48
|
+
end
|
42
49
|
cmd << "-d -t #{fetch(:docker_image)}:latest "
|
43
50
|
cmd
|
44
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Riley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|