rumination 0.10.1 → 0.10.2
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 +4 -4
- data/README.md +2 -0
- data/lib/rumination/deploy/base.rb +13 -5
- data/lib/rumination/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: a4317736dc2e36d965a958564107f8be68e686e9
|
|
4
|
+
data.tar.gz: de2f5ea281741cc85b08b8a76245d19037ee8dca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8c0b47ca6bc6867bdb361deada08c9ca25060fd073830508de1a2523ddba6036d3ed575ed0ed8fae4f80ed69cf4b1fdfaf75b6a6f03bd69f8c5f1d5b44860d9
|
|
7
|
+
data.tar.gz: 6ac66acc73d97f00a65a11a7ada23addf7c2b709b1d293f5e12e83fbeb5116e132393c1c25f9fc040aefd27bf44309930201ba6f7ec3788be10b81f26bf64163
|
data/README.md
CHANGED
|
@@ -19,7 +19,7 @@ module Rumination
|
|
|
19
19
|
call do
|
|
20
20
|
raise BootstrappedAlready if bootstrapped?
|
|
21
21
|
copy_dump_if_requested
|
|
22
|
-
|
|
22
|
+
app_container.run("rake deploy:bootstrap:inside[#{target}]")
|
|
23
23
|
raise BootstrapError unless $? == 0
|
|
24
24
|
end
|
|
25
25
|
end
|
|
@@ -28,9 +28,9 @@ module Rumination
|
|
|
28
28
|
setup_outside_env
|
|
29
29
|
DockerCompose.build.down("--remove-orphans").up
|
|
30
30
|
yield if block_given?
|
|
31
|
-
|
|
31
|
+
app_container.exec("rake deploy:unload[#{target}]")
|
|
32
32
|
raise DeployError unless $? == 0
|
|
33
|
-
|
|
33
|
+
app_container.run("rake deploy:finish[#{target}]")
|
|
34
34
|
raise DeployError unless $? == 0
|
|
35
35
|
end
|
|
36
36
|
|
|
@@ -73,7 +73,7 @@ module Rumination
|
|
|
73
73
|
def copy_dump_if_requested
|
|
74
74
|
return unless config.copy_dumpfile.present?
|
|
75
75
|
return unless File.exists?(config.copy_dumpfile)
|
|
76
|
-
|
|
76
|
+
app_container.cp_to_container(
|
|
77
77
|
config.copy_dumpfile,
|
|
78
78
|
Rumination.config.pg.dumpfile_path
|
|
79
79
|
)
|
|
@@ -105,7 +105,7 @@ module Rumination
|
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
def bootstrapped?
|
|
108
|
-
|
|
108
|
+
app_container.has_file?(env_file_path)
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
def env_file_path
|
|
@@ -115,6 +115,14 @@ module Rumination
|
|
|
115
115
|
def container(name)
|
|
116
116
|
DockerCompose::Container.new(name)
|
|
117
117
|
end
|
|
118
|
+
|
|
119
|
+
def app_container_name
|
|
120
|
+
config.app_countainer || :app
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
def app_countainer
|
|
124
|
+
container(app_container_name)
|
|
125
|
+
end
|
|
118
126
|
end
|
|
119
127
|
end
|
|
120
128
|
end
|
data/lib/rumination/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rumination
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Artem Baguinski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|