rumination 0.14.7 → 0.14.8
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 +11 -12
- data/lib/rumination/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 393de0817267546b04098bca7b99de6e60e5dc48
|
4
|
+
data.tar.gz: 1dfcf82cf8f09a096d9f8146c578cc37bac7b71d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1825c8f74abc39251f6b812b2cd20bff821b518a5695c71c455d9a6344d15c2c430c3c921b9189e7d06b15b2de3a9a55be39fb1926fcb81758cbdf2b893cce70
|
7
|
+
data.tar.gz: 4d42f6ffddbfbe32f4b3173cd93dd79596b2184d7200a73a0b8a5fd6ac6142e939eee8557d7816880813fed382613c80c0ad885d7119a2745bfd71bf4fa7ec98
|
@@ -33,29 +33,25 @@ module DeployTasks
|
|
33
33
|
temp_file_path = "tmp/#{Rumination::Deploy.target}.env"
|
34
34
|
mkdir_p File.dirname(temp_file_path)
|
35
35
|
Rumination::Deploy.write_env_file(temp_file_path)
|
36
|
-
|
37
|
-
sh "docker cp #{temp_file_path} #{container}:#{env_file_path}"
|
36
|
+
sh "docker cp #{temp_file_path} #{app_container_full_name}:#{env_file_path}"
|
38
37
|
end
|
39
38
|
|
40
39
|
task :copy_files do
|
41
|
-
container = Rumination::Deploy.app_container_full_name
|
42
40
|
Rumination::Deploy.files_to_copy_on_bootstrap.each do |source, target|
|
43
|
-
sh "docker cp #{source} #{
|
41
|
+
sh "docker cp #{source} #{app_container_full_name}:#{target}"
|
44
42
|
end
|
45
43
|
end
|
46
44
|
|
47
45
|
task :db
|
48
46
|
|
49
47
|
task :flag_success do
|
50
|
-
container = Rumination::Deploy.app_container_name
|
51
48
|
flag_path = Rumination::Deploy.bootstrapped_flag_path
|
52
|
-
sh "docker-compose run --rm #{
|
49
|
+
sh "docker-compose run --rm #{app_container_name} touch #{flag_path}"
|
53
50
|
end
|
54
51
|
|
55
52
|
task :check_flag do
|
56
|
-
container = Rumination::Deploy.app_container_name
|
57
53
|
flag_path = Rumination::Deploy.bootstrapped_flag_path
|
58
|
-
sh "docker-compose run --rm #{
|
54
|
+
sh "docker-compose run --rm #{app_container_name} test -f #{flag_path}" do |ok, err|
|
59
55
|
if ok
|
60
56
|
message = "The target '#{Rumination::Deploy.target}' was bootstrap already"
|
61
57
|
raise Rumination::Deploy::BootstrappedAlready, message
|
@@ -100,22 +96,25 @@ module DeployTasks
|
|
100
96
|
|
101
97
|
task :start_services do
|
102
98
|
if Rumination::Deploy.development_target?
|
103
|
-
sh "docker-compose run --rm #{
|
99
|
+
sh "docker-compose run --rm #{app_container_name} bundle install"
|
104
100
|
end
|
105
101
|
sh "docker-compose up -d"
|
106
102
|
end
|
107
103
|
|
108
104
|
task :copy_files do
|
109
|
-
container = Rumination::Deploy.app_container_full_name
|
110
105
|
Rumination::Deploy.files_to_copy_on_deploy.each do |source, target|
|
111
|
-
sh "docker cp #{source} #{
|
106
|
+
sh "docker cp #{source} #{app_container_full_name}:#{target}"
|
112
107
|
end
|
113
108
|
end
|
114
109
|
end
|
115
110
|
|
116
111
|
class << self
|
117
|
-
def
|
112
|
+
def app_container_name
|
118
113
|
Rumination::Deploy.app_container_name
|
119
114
|
end
|
115
|
+
|
116
|
+
def app_container_full_name
|
117
|
+
Rumination::Deploy.app_container_full_name
|
118
|
+
end
|
120
119
|
end
|
121
120
|
end
|
data/lib/rumination/version.rb
CHANGED