fly.io-rails 0.0.12-aarch64-linux → 0.0.13-aarch64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fly.io-rails/version.rb +1 -1
- data/lib/generators/terraform_generator.rb +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 407575b4e055ea62282e3d683862b883bf390fdf57eefc5f28bbee2e3f6be066
|
4
|
+
data.tar.gz: e64318084634debd66ce2d08f2bcfe2e73d18c5bd238184249e9a40c06afa319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a18e46f3c584322b6b27cc6f99d601d25c544c612fdf90644abfb088eed9b75d47db31ddcdee2e3b26d083abb681ac668f0f846f3f51e72f0510cf2a45ee6b0
|
7
|
+
data.tar.gz: 410321e67491b03b3144c12cdc778a524148ea36731d6c185353c0c8ff25d20f2b0e682e1a8a6d234430f7284af1f2c26d576eec71b01f1247867e9f8259f273
|
data/lib/fly.io-rails/version.rb
CHANGED
@@ -41,6 +41,19 @@ class TerraformGenerator < Rails::Generators::Base
|
|
41
41
|
template 'main.tf.erb', 'main.tf'
|
42
42
|
template 'fly.rake.erb', 'lib/tasks/fly.rake'
|
43
43
|
|
44
|
+
credentials = nil
|
45
|
+
if File.exist? 'config/credentials/production.key'
|
46
|
+
credentials = 'config/credentials/production.key'
|
47
|
+
elsif File.exist? 'config/master.key'
|
48
|
+
credentials = 'config/master.key'
|
49
|
+
end
|
50
|
+
|
51
|
+
if credentials
|
52
|
+
say_status :run, "flyctl secrets set RAILS_MASTER_KEY from #{credentials}"
|
53
|
+
system "flyctl secrets set RAILS_MASTER_KEY=#{IO.read(credentials).chomp}"
|
54
|
+
puts
|
55
|
+
end
|
56
|
+
|
44
57
|
ENV['FLY_API_TOKEN'] = `flyctl auth token`
|
45
58
|
tee 'terraform init'
|
46
59
|
end
|