rumination 0.14.8 → 0.14.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 393de0817267546b04098bca7b99de6e60e5dc48
4
- data.tar.gz: 1dfcf82cf8f09a096d9f8146c578cc37bac7b71d
3
+ metadata.gz: 763926fc6611083973bd4cb97316616c5b07ecc6
4
+ data.tar.gz: f2170c17e7440bddc2ad6c4a0a88976d47fc3362
5
5
  SHA512:
6
- metadata.gz: 1825c8f74abc39251f6b812b2cd20bff821b518a5695c71c455d9a6344d15c2c430c3c921b9189e7d06b15b2de3a9a55be39fb1926fcb81758cbdf2b893cce70
7
- data.tar.gz: 4d42f6ffddbfbe32f4b3173cd93dd79596b2184d7200a73a0b8a5fd6ac6142e939eee8557d7816880813fed382613c80c0ad885d7119a2745bfd71bf4fa7ec98
6
+ metadata.gz: e70b5d86705923a0e7181720a9d5bbdcb9363b73caa3ed9f05b60adc263e32866578557fb5215969024cfdc941c094720f70b778b2b664256e617f6fee73647f
7
+ data.tar.gz: '09919ac682f82baf565e8e02b4dfbea85e786137266eccd3da35a5cb60a8419c0878c8f467d88e2e4f2d2c2a57c293e7a6d4fa5d922debc36948322551d7413d'
@@ -41,6 +41,10 @@ module Rumination
41
41
  self.target.to_s == "development"
42
42
  end
43
43
 
44
+ def migrate_on_deploy?
45
+ config.migrate_on_deploy
46
+ end
47
+
44
48
  def write_env_file path
45
49
  File.open(path, "w") do |io|
46
50
  persistent_env.merge(generated_passwords).each do |var, val|
@@ -98,6 +98,9 @@ module DeployTasks
98
98
  if Rumination::Deploy.development_target?
99
99
  sh "docker-compose run --rm #{app_container_name} bundle install"
100
100
  end
101
+ if Rumination::Deploy.migrate_on_deploy?
102
+ sh "docker-compose run --rm #{app_container_name} rake db:migrate"
103
+ end
101
104
  sh "docker-compose up -d"
102
105
  end
103
106
 
@@ -1,3 +1,3 @@
1
1
  module Rumination
2
- VERSION = "0.14.8"
2
+ VERSION = "0.14.9"
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.8
4
+ version: 0.14.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski