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 +4 -4
- data/lib/rat_deployer/cli.rb +10 -3
- data/lib/rat_deployer/version.rb +1 -1
- 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: 630b6475a7c98e1e5c898a5500c4972438ea8a84
|
4
|
+
data.tar.gz: c2bff1fc9498d5d5ba2eb1ff61d5e8aa461ff5dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6220c3ce5071ed1d61a9be2bd7750734e50fc04456d75a50ec184adaa5b60e8f3648a3f7b9377ee4550dd4da24c91c8b510e54bcf792f3b33d8de9d9ea2df02
|
7
|
+
data.tar.gz: 707b1af429e80edf9577c9463fb418a3888612bd9e9fede5f09413c0a6452021b534d95c6ae3d6644c26d424f5673508c55210a802b70f4261208740d5c243bc
|
data/lib/rat_deployer/cli.rb
CHANGED
@@ -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
|
-
|
15
|
-
|
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
|
data/lib/rat_deployer/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|