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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40f93df612f9f01592c6d4d333cac17117608d53
4
- data.tar.gz: f8f90435cc3791b94671040467b6eda998e48119
3
+ metadata.gz: b7e946979a9ee4f01bd540867221a0abdee9377a
4
+ data.tar.gz: c3052a8e48010ab7dcfbee64b0b198f0ea268b09
5
5
  SHA512:
6
- metadata.gz: 348527753ff305566e0ca7bb4941052387d3d9a3258e42b75792565e963c032aca22da2ffb045e4bc1eb74cac6b4cf9032537d179a66f467b50d3de90c61ddc6
7
- data.tar.gz: bc09eb6fde6997f1a40ee22af8cc106335a8873eb43d6ccce9b6486b4ba01c93335e1a4ca520b8f4f6dbffc239ffa12ac0a85744531db6297fd32b2f213d7b8c
6
+ metadata.gz: ebe529c102e13ba1bc9b89560d6498c271f1331dd3ae30171c510a5580b92a9df88712268265e39c9b29525ec371118ce7178019ef013fc4ebe566ae1291e699
7
+ data.tar.gz: 5589d8660f44e8a92e1fb972ea6340a57773d9e979edf58d4e5d0b5844856ab6c57dfc2595d958e1900fb69fb4b643ef5174d95d6f719385d067f89fb45cb086
@@ -57,7 +57,6 @@ module DockerDeploy
57
57
  def service(name, &block)
58
58
  service = Service.new(self, name)
59
59
  service.instance_eval(&block)
60
- @deploy << "#{name}:restart"
61
60
  @services << service
62
61
  end
63
62
  end
@@ -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."
@@ -1,3 +1,3 @@
1
1
  module DockerDeploy
2
- VERSION = "0.3.4"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.4
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: 2014-11-17 00:00:00.000000000 Z
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.2.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: