rumination 0.14.9 → 0.14.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rumination/tasks/deploy.rake +22 -21
- 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: fb7d5aea737590244255549379d37ceb1cf43106
|
4
|
+
data.tar.gz: 4be49c5c3b3fca50fe5f4296abb8a6d251047c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a74d7b82e74277809948fb1a8fa491dbcb53f7bd66f69345de95122ed049ed3e71e1ad1c680f6b5b71fe2646a18a83e58c3966f340fc0096584ee7fc89c01426
|
7
|
+
data.tar.gz: 463939f65f6a1916d36d1ca3e80e5e2b5d4daf7203f0796e0aaf631550901345da1cfb83f25ea3ac365152fd66879353cba1f257aef395301938df9b1d9eb981
|
@@ -7,18 +7,29 @@ module DeployTasks
|
|
7
7
|
|
8
8
|
namespace :deploy do
|
9
9
|
task :default => %w[
|
10
|
-
|
11
|
-
|
10
|
+
setup_docker_env
|
11
|
+
build_containers
|
12
|
+
shut_down_services
|
13
|
+
refresh_gems_in_development
|
14
|
+
migrate_if_requested
|
15
|
+
start_services
|
16
|
+
copy_files
|
17
|
+
on:deployed
|
12
18
|
]
|
13
19
|
|
14
20
|
task :bootstrap => %w[
|
15
|
-
|
21
|
+
setup_docker_env
|
22
|
+
build_containers
|
23
|
+
shut_down_services
|
24
|
+
refresh_gems_in_development
|
16
25
|
bootstrap:check_flag
|
17
26
|
bootstrap:env_file
|
18
27
|
bootstrap:copy_files
|
19
28
|
bootstrap:db
|
29
|
+
start_services
|
30
|
+
copy_files
|
20
31
|
on:bootstrapped
|
21
|
-
|
32
|
+
on:deployed
|
22
33
|
bootstrap:flag_success
|
23
34
|
]
|
24
35
|
|
@@ -70,22 +81,6 @@ module DeployTasks
|
|
70
81
|
end
|
71
82
|
end
|
72
83
|
|
73
|
-
task :start => %w[
|
74
|
-
setup_docker_env
|
75
|
-
switch_containers
|
76
|
-
]
|
77
|
-
|
78
|
-
task :finish => %w[
|
79
|
-
copy_files
|
80
|
-
on:deployed
|
81
|
-
]
|
82
|
-
|
83
|
-
task :switch_containers => %w[
|
84
|
-
build_containers
|
85
|
-
shut_down_services
|
86
|
-
start_services
|
87
|
-
]
|
88
|
-
|
89
84
|
task :build_containers do
|
90
85
|
sh "docker-compose build"
|
91
86
|
end
|
@@ -94,13 +89,19 @@ module DeployTasks
|
|
94
89
|
sh "docker-compose down --remove-orphans"
|
95
90
|
end
|
96
91
|
|
97
|
-
task :
|
92
|
+
task :refresh_gems_in_development do
|
98
93
|
if Rumination::Deploy.development_target?
|
99
94
|
sh "docker-compose run --rm #{app_container_name} bundle install"
|
100
95
|
end
|
96
|
+
end
|
97
|
+
|
98
|
+
task :migrate_if_requested do
|
101
99
|
if Rumination::Deploy.migrate_on_deploy?
|
102
100
|
sh "docker-compose run --rm #{app_container_name} rake db:migrate"
|
103
101
|
end
|
102
|
+
end
|
103
|
+
|
104
|
+
task :start_services do
|
104
105
|
sh "docker-compose up -d"
|
105
106
|
end
|
106
107
|
|
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.14.
|
4
|
+
version: 0.14.10
|
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-05-
|
11
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|