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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d123dc54c137abf9114ea06c8526d5e86ad5b21b
4
- data.tar.gz: b820160c369e1a8292c71546e1023eeaea0f5331
3
+ metadata.gz: 96e1b920527d1fa2cd1a0d2f06ed04fc8ea4b00a
4
+ data.tar.gz: 5646cfb0158210950ed70030f53e3a3b5d694acc
5
5
  SHA512:
6
- metadata.gz: 670e760d635e7e5bf524d66e3836c5d7c66f92f16a12c948ed97539bea474518f86d564e7c6a2f7acb587a7aaa3236244c2fba4b79b58f2367d365640b748ad6
7
- data.tar.gz: b9c47a75fcb09ffb82afeea6a8e134130585cf87a16f34265caa2fa7a8ef3d3e87f1501de9abb2da81aaead6afdd6d0a23292e16249a9bd769c8e8a2b6a22175
6
+ metadata.gz: 3c8f23025ef2d316434e05fcfe502ec601d57bfcb501c61e88ef7017742207c7119804fa1cc6790175ad1a14ceeb0e88448cf42f958307b9bcf878152f256c24
7
+ data.tar.gz: a5bd25a197a5ed63fbb7ea39e679fe93b18a8c35030b923fb7dd362c483ce6993ccff698ffb0da25dda1d566783c72919d400a32b80de3d3f170f5ef68831114
@@ -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 = RatDeployer::Config.env
23
- project_name = RatDeployer::Config.all.fetch('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
@@ -1,3 +1,3 @@
1
1
  module RatDeployer
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.1.4
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-10-24 00:00:00.000000000 Z
11
+ date: 2016-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor