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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bcddb38cb8fd9cd82ccea07d5b749cdcf331b6807d3726a4744d1dc600c226c
4
- data.tar.gz: e9432d6483f660fc447ba6d64e8e9151e0b9c28d0755df6793ed663629210fc7
3
+ metadata.gz: 407575b4e055ea62282e3d683862b883bf390fdf57eefc5f28bbee2e3f6be066
4
+ data.tar.gz: e64318084634debd66ce2d08f2bcfe2e73d18c5bd238184249e9a40c06afa319
5
5
  SHA512:
6
- metadata.gz: 9dd3faa5b430caa7838d4f1f0cc2e7a25f946dbc2f23459817b384b74da42db1919f797f8558f01a2bf6279aa32fd3ce7cf10060e15a1374b1e40cadb8de7469
7
- data.tar.gz: 861978003e108b30f036a8f1fac3d2e02066bc8c58a07009e002fce9c68ff8549c39749861fe6e1562f690e361e229029dbf65debacfad6a37691a5308321134
6
+ metadata.gz: 0a18e46f3c584322b6b27cc6f99d601d25c544c612fdf90644abfb088eed9b75d47db31ddcdee2e3b26d083abb681ac668f0f846f3f51e72f0510cf2a45ee6b0
7
+ data.tar.gz: 410321e67491b03b3144c12cdc778a524148ea36731d6c185353c0c8ff25d20f2b0e682e1a8a6d234430f7284af1f2c26d576eec71b01f1247867e9f8259f273
@@ -1,3 +1,3 @@
1
1
  module Fly_io
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fly.io-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Sam Ruby