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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85830b72a8e9fc17c7c7dad1fa8ad55713cc951d
4
- data.tar.gz: 2877ce592091170551b8b489341b5b587552c600
3
+ metadata.gz: 2a9a3814c2df2df399fb49f89ba238fff3f0144b
4
+ data.tar.gz: 623b50236e66de5e1dfd34335da693eb8c7f0211
5
5
  SHA512:
6
- metadata.gz: 25bef6080b80ba5a6e714b4a09b4838c520cdc122f33922152b266f664fa8239a29c51a315e564f9a8d9380b47c7bbe28409a0a503fed0f9b0dc160fbbed3ad7
7
- data.tar.gz: 00651211986b3c813da77e7e9c7311fe855b7b45427f732f0bee52908eedb8178d98a92f87fb2e9b14704a4974595498b15a8138bd669fb2113b8f3e1deb8116
6
+ metadata.gz: c3b1b3f484856cc563a6f29528ee95dc0fb2496675fafd802aa6b0e93e0795c6e8d6d705c16d4dc043f3f011e120d514fe86e4ce6f162f7f10e01dc66b47bd52
7
+ data.tar.gz: 07dcb2fea450ba8f3e3ef6461e529f6564683dfe767bd8227a15de5ebec982b50ba1a85db88805282bb62aa64be80571bd6b4a7ee199db34306a52d805205cb9
@@ -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.6'
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.6
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-08-20 00:00:00.000000000 Z
11
+ date: 2014-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano