rumination 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8637e2cfba60a39dfcb10f58cf97ad5c9c33f443
|
4
|
+
data.tar.gz: a09f5a6fcbb8a271b9efa8b70a50a7e860e7a04d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
28
|
+
def restart *args
|
29
|
+
sh "docker-compose restart", name, *args
|
30
30
|
self
|
31
31
|
end
|
32
32
|
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
|
data/lib/rumination/version.rb
CHANGED