fly.io-rails 0.0.12-arm64-darwin → 0.0.13-arm64-darwin

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: e17efc91a4fb6e5627bae59e0097ee539559ad62afa7baf189b08384e073b61e
4
- data.tar.gz: 0c1db0d460aa82b042887ee2663d9318707854a2e6834a6678945c6815b061e4
3
+ metadata.gz: eaa6aad97621955457153f28418a9111e2f4fbc793d6db5a91f4877ca37e77ec
4
+ data.tar.gz: 850851911bc297a5e7f984ced6cf781118228b1c5b38cf7ded304f3a3e337c1f
5
5
  SHA512:
6
- metadata.gz: da446db34ff0657ebc8cba804fe408bab177f5c4f7638da28d463e2eb5bb25e4107852ac4b9dabc7a08b40459eeac1047b7a79ac1356f522e22d71670c98ee4d
7
- data.tar.gz: 38f6f43b488e9f35335a2aa3cd1d927d6ba4a6d4a13a124511fffe1590b997c86adc5930a9c66c55d5f28a80ed4cbf3b367c2b8d137da2fc22b7cad9cc615ce5
6
+ metadata.gz: e085510590cf677d4fe8b4d8f278cda9237869ab5eb0b1fbc7bf83f2fa298c2ca4d321fc0ba3de5df533f52fd8280b4ed2c67be9eced2a106995d3c2a8fa755f
7
+ data.tar.gz: 23d41bb2471292422b215ba80be9d1a021e2b7eed4ed3ddaeb26273f993af4c9e5ad59845be24846b1c8f03ce14732fd439c28827cbce2b86528beefcb36949d
@@ -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: arm64-darwin
6
6
  authors:
7
7
  - Sam Ruby