rat_deployer 0.2.0 → 0.3.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: 68af30161bf57223e0e17c52c9f8a22312a7b6a9
4
- data.tar.gz: 4cfa2327a14b25b6aaf32d4778a15f2a2b9c7e7c
3
+ metadata.gz: 630b6475a7c98e1e5c898a5500c4972438ea8a84
4
+ data.tar.gz: c2bff1fc9498d5d5ba2eb1ff61d5e8aa461ff5dd
5
5
  SHA512:
6
- metadata.gz: 07c4d8b7dc68a350d5d6b9735c66d7e5f4729ed49055ba0a195761766d5d3125dca1771761d37ee09ced555a6aec3a202343cf2468d156029e9fe130d10c7817
7
- data.tar.gz: 04ee51ef35741b3213bed7bfc989237b49765f780fbddf93916a8b33e37396ae14d4ca148b241c437039317621b8bb83f092350b376b1f098a768fd1284b19b8
6
+ metadata.gz: f6220c3ce5071ed1d61a9be2bd7750734e50fc04456d75a50ec184adaa5b60e8f3648a3f7b9377ee4550dd4da24c91c8b510e54bcf792f3b33d8de9d9ea2df02
7
+ data.tar.gz: 707b1af429e80edf9577c9463fb418a3888612bd9e9fede5f09413c0a6452021b534d95c6ae3d6644c26d424f5673508c55210a802b70f4261208740d5c243bc
@@ -8,11 +8,18 @@ module RatDeployer
8
8
  include RatDeployer::Command
9
9
 
10
10
  desc "deploy", "deploys current environment"
11
- def deploy
11
+ def deploy(*services)
12
12
  RatDeployer::Notifier.notify_deploy_start
13
13
 
14
- RatDeployer::Cli.new.compose('pull')
15
- RatDeployer::Cli.new.compose('up -d')
14
+
15
+ if services.any?
16
+ services_str = services.join(' ')
17
+ RatDeployer::Cli.new.compose("pull #{services_str}")
18
+ RatDeployer::Cli.new.compose("up -d --no-deps --force-recreate #{services_str}")
19
+ else
20
+ RatDeployer::Cli.new.compose('pull')
21
+ RatDeployer::Cli.new.compose('up -d')
22
+ end
16
23
 
17
24
  RatDeployer::Notifier.notify_deploy_end
18
25
  rescue Exception => e
@@ -1,3 +1,3 @@
1
1
  module RatDeployer
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rat_deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Oga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-05 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor