fly.io-rails 0.0.13-x86-linux → 0.0.14-x86-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: 1e8702fd0340271db744295fe652c95004453f99ec9a926a5a3e3d264454a365
4
- data.tar.gz: 5efb500895f53801a38763eed56b8ebc2b7c3f2d1ac528ffce02ac471a270f3f
3
+ metadata.gz: c65b20851530beca7c608846309367f1200d2bce057c7111c8562a769f3cd5c9
4
+ data.tar.gz: f90d3eb1e4080f7d400b21ba9e2d833bc6c7fa8a8c46d56805faf53951421f3b
5
5
  SHA512:
6
- metadata.gz: 8898673f5970004a16ae03110dd554a3ade7febd7a0db5d1af938d1e1b27d7e3501e0b68bfc0712e3a9b649fe905f7442eb581e414cb483829588b9b6e154ae2
7
- data.tar.gz: d6d8763a6005a8dbc769e372aec46c2a5335abffbc49ec4e3c4baeb40faca9c6bd0408734bdf3b7db12b0a6e0ce06e2f71f3d747905a0248787692e4fa5fb402
6
+ metadata.gz: ca44fe68fec4e2c8092959d98ae380120a66c3dbf607cebdfd148e84975923d452537e6b4a1d055f00325687d2c48935816eee3f1ec0d887c789cdabc0dc7222
7
+ data.tar.gz: a90952a0223a11488818439ad5f31c66f70aae068884c8fc7d3e15d6199a9011131ab9f9965d1f10e4aa8ef4dd52a76638262580734c3c9f7e724de00432813d
@@ -1,3 +1,3 @@
1
1
  module Fly_io
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
3
3
  end
@@ -0,0 +1,4 @@
1
+ app = "<%= @app %>"
2
+
3
+ [deploy]
4
+ release_command = "bundle exec rails db:migrate"
@@ -18,7 +18,6 @@ class TerraformGenerator < Rails::Generators::Base
18
18
  exit 1 unless output =~ /^New app created: /
19
19
 
20
20
  @app = output.split.last
21
- create_file 'fly.toml', "app = #{@app.inspect}\n"
22
21
 
23
22
  if options[:region].empty?
24
23
  @regions = JSON.parse(`flyctl regions list --json`)['Regions'].
@@ -38,6 +37,7 @@ class TerraformGenerator < Rails::Generators::Base
38
37
 
39
38
  template 'Dockerfile.erb', 'Dockerfile'
40
39
  template 'dockerignore.erb', '.dockerignore'
40
+ template 'fly.toml.erb', 'fly.toml'
41
41
  template 'main.tf.erb', 'main.tf'
42
42
  template 'fly.rake.erb', 'lib/tasks/fly.rake'
43
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fly.io-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: x86-linux
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-18 00:00:00.000000000 Z
11
+ date: 2022-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fly-ruby
@@ -46,6 +46,7 @@ files:
46
46
  - lib/generators/templates/Dockerfile.erb
47
47
  - lib/generators/templates/dockerignore.erb
48
48
  - lib/generators/templates/fly.rake.erb
49
+ - lib/generators/templates/fly.toml.erb
49
50
  - lib/generators/templates/main.tf.erb
50
51
  - lib/generators/terraform_generator.rb
51
52
  - lib/tasks/fly.rake