rat_deployer 0.1.4 → 0.1.5
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 +13 -2
- 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: 96e1b920527d1fa2cd1a0d2f06ed04fc8ea4b00a
|
4
|
+
data.tar.gz: 5646cfb0158210950ed70030f53e3a3b5d694acc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c8f23025ef2d316434e05fcfe502ec601d57bfcb501c61e88ef7017742207c7119804fa1cc6790175ad1a14ceeb0e88448cf42f958307b9bcf878152f256c24
|
7
|
+
data.tar.gz: a5bd25a197a5ed63fbb7ea39e679fe93b18a8c35030b923fb7dd362c483ce6993ccff698ffb0da25dda1d566783c72919d400a32b80de3d3f170f5ef68831114
|
data/lib/rat_deployer/cli.rb
CHANGED
@@ -19,8 +19,8 @@ module RatDeployer
|
|
19
19
|
|
20
20
|
desc "compose ARGS...", "runs docker-compose command with default flags"
|
21
21
|
def compose(cmd, *cmd_flags)
|
22
|
-
env
|
23
|
-
project_name
|
22
|
+
env = RatDeployer::Config.env
|
23
|
+
project_name = RatDeployer::Config.all.fetch('project_name')
|
24
24
|
|
25
25
|
flags = [
|
26
26
|
"-f config/default.yml",
|
@@ -33,6 +33,17 @@ module RatDeployer
|
|
33
33
|
run "docker-compose #{flags.join(' ')} #{cmd} #{cmd_flags.join(" ")}"
|
34
34
|
end
|
35
35
|
|
36
|
+
desc "docker ARGS...", "runs docker command with default flags"
|
37
|
+
def docker(cmd, *cmd_flags)
|
38
|
+
env = RatDeployer::Config.env
|
39
|
+
project_name = RatDeployer::Config.all.fetch('project_name')
|
40
|
+
|
41
|
+
flags = []
|
42
|
+
flags.unshift(remote_machine_flags) if RatDeployer::Config.remote
|
43
|
+
|
44
|
+
run "docker #{flags.join(' ')} #{cmd} #{cmd_flags.join(" ")}"
|
45
|
+
end
|
46
|
+
|
36
47
|
private
|
37
48
|
|
38
49
|
def remote_machine_flags
|
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.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Oga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|