rumination 0.14.7 → 0.14.8

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: 6be5d88be08c3e9c676bff3efbf9753c96a52fd3
4
- data.tar.gz: 374cb6d7bf9b6f6ce29043c3d86d29960304d408
3
+ metadata.gz: 393de0817267546b04098bca7b99de6e60e5dc48
4
+ data.tar.gz: 1dfcf82cf8f09a096d9f8146c578cc37bac7b71d
5
5
  SHA512:
6
- metadata.gz: 9e741743cb725a7d082a1ccfd46271e4ce1c8fcd0c05bd854531cdbe3087f7f4e29f4b9c76dc668db08800a43c2e8494a00b7484cd284e9b6cda0dadfe5fe70f
7
- data.tar.gz: 786dcebd85c088226a0a807303b6192ee1cdce2d65a546aeec629dc9efca618b92a1b209bf5dd6490e9e9b162a983a1d3e9aa2a10bae10ea51cb5c97263d0520
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
- container = Rumination::Deploy.app_container_full_name
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} #{container}:#{target}"
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 #{container} touch #{flag_path}"
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 #{container} test -f #{flag_path}" do |ok, err|
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 #{container} bundle install"
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} #{container}:#{target}"
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 container
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
@@ -1,3 +1,3 @@
1
1
  module Rumination
2
- VERSION = "0.14.7"
2
+ VERSION = "0.14.8"
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.14.7
4
+ version: 0.14.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski