rumination 0.6.3 → 0.6.4

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: 74a09910934287c5d817bc0fae52446e170845f2
4
- data.tar.gz: 62e43fc397fab20e50322eaf325e780199f7fc27
3
+ metadata.gz: 8637e2cfba60a39dfcb10f58cf97ad5c9c33f443
4
+ data.tar.gz: a09f5a6fcbb8a271b9efa8b70a50a7e860e7a04d
5
5
  SHA512:
6
- metadata.gz: d0eb7a0d34feb3296f2f9233b3b1f8dbd52dec439de35ab71a0096f06ec992870bdbf349316d0e62fd0ebfcdf783b79d29b378bb8dd278ecfdc10a3ee9cd318c
7
- data.tar.gz: c979254dca44de74877c4d16c2052c2839dca15d8cb2847c59056bd52dc0d162cfbc76f3c8dba4daf9f77353db1615d259a4010fd01a97344d54760c75c1a7e6
6
+ metadata.gz: f093406ef23657bfc265a65cb22b015ee85c66f6c0408fc385ffb557a36e700c3dc7742e8a099b9d0e1fe709555c2d611feba9d940497594ad741dd22edc6fa7
7
+ data.tar.gz: 626e6b99e1b07920c084b1624358a2a35b661f7a5c3d9e01edf840ccfdcd6a74244496326e93fed9be89b15bae6404fad2e6b96c5bcd47522729ddf3a9ce50a9
@@ -17,7 +17,7 @@ module Rumination
17
17
  def call
18
18
  load_application_config_if_exists
19
19
  load_target_config
20
- DockerCompose.build.down.up
20
+ DockerCompose.build.down("--remove-orphans").up
21
21
  yield if block_given?
22
22
  container(:backend)
23
23
  .exec("rake deploy:unload[#{target}]")
@@ -15,18 +15,18 @@ module Rumination
15
15
  $? == 0
16
16
  end
17
17
 
18
- def exec command
19
- sh "docker-compose exec #{name} #{command}"
18
+ def exec command, *args
19
+ sh "docker-compose exec", name, command, *args
20
20
  self
21
21
  end
22
22
 
23
- def run command
24
- sh "docker-compose run --rm #{name} #{command}"
23
+ def run command, *args
24
+ sh "docker-compose run --rm", name, command, *args
25
25
  self
26
26
  end
27
27
 
28
- def restart
29
- sh "docker-compose restart #{name}"
28
+ def restart *args
29
+ sh "docker-compose restart", name, *args
30
30
  self
31
31
  end
32
32
  end
@@ -1,7 +1,8 @@
1
1
  module Rumination
2
2
  module DockerCompose
3
3
  module Sh
4
- def sh command
4
+ def sh command, *more_args
5
+ command = [command, *more_args].join(" ")
5
6
  puts command
6
7
  system command
7
8
  end
@@ -5,18 +5,18 @@ module Rumination
5
5
  module DockerCompose
6
6
  extend Sh
7
7
 
8
- def self.build
9
- sh "docker-compose build"
8
+ def self.build *args
9
+ sh "docker-compose build", *args
10
10
  self
11
11
  end
12
12
 
13
- def self.down
14
- sh "docker-compose down"
13
+ def self.down *args
14
+ sh "docker-compose down", *args
15
15
  self
16
16
  end
17
17
 
18
- def self.up
19
- sh "docker-compose up -d"
18
+ def self.up *args
19
+ sh "docker-compose up -d", *args
20
20
  self
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module Rumination
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski