docker_deploy 0.3.4 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker_deploy/stage.rb +0 -1
- data/lib/docker_deploy/task.rb +8 -0
- data/lib/docker_deploy/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7e946979a9ee4f01bd540867221a0abdee9377a
|
4
|
+
data.tar.gz: c3052a8e48010ab7dcfbee64b0b198f0ea268b09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebe529c102e13ba1bc9b89560d6498c271f1331dd3ae30171c510a5580b92a9df88712268265e39c9b29525ec371118ce7178019ef013fc4ebe566ae1291e699
|
7
|
+
data.tar.gz: 5589d8660f44e8a92e1fb972ea6340a57773d9e979edf58d4e5d0b5844856ab6c57dfc2595d958e1900fb69fb4b643ef5174d95d6f719385d067f89fb45cb086
|
data/lib/docker_deploy/stage.rb
CHANGED
data/lib/docker_deploy/task.rb
CHANGED
@@ -24,6 +24,11 @@ module DockerDeploy
|
|
24
24
|
desc "deploy the application"
|
25
25
|
task deploy: stage.deploy
|
26
26
|
|
27
|
+
namespace :deploy do
|
28
|
+
desc "deploy the application and run migrations"
|
29
|
+
task migrations: stage.deploy.insert(-2, :migrate)
|
30
|
+
end
|
31
|
+
|
27
32
|
desc "Stop the application and remove its container"
|
28
33
|
task :stop do
|
29
34
|
stage.run "docker inspect #{stage.container} 2>&1 > /dev/null && docker kill #{stage.container} && docker rm #{stage.container} || true"
|
@@ -59,6 +64,9 @@ module DockerDeploy
|
|
59
64
|
stage.run "docker logs --tail 50 -f #{service.container}"
|
60
65
|
end
|
61
66
|
end
|
67
|
+
|
68
|
+
task start: "#{service.name}:start"
|
69
|
+
task stop: "#{service.name}:stop"
|
62
70
|
end
|
63
71
|
|
64
72
|
desc "Run migrations in the latest image."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sshkit
|
@@ -96,8 +96,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.4.2
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: Deploy Docker containers via Rake
|
103
103
|
test_files: []
|
104
|
+
has_rdoc:
|