fly.io-rails 0.0.13-x86_64-darwin → 0.0.14-x86_64-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: ec19b63be4a06397aa677712a4a83bd053493f5d2bdc7cd72f6d022fc0f37eb6
4
- data.tar.gz: 819271f7637ec17effa65b3faec5b5e9e6460f106c682611030553f51d811329
3
+ metadata.gz: e0cb17d3e8ab046115dcea3f8f25f46eacb85897004ebec3bddd3c1cd0d89c3f
4
+ data.tar.gz: 913aa12ae396e92e7f7a60c993d905e356a366ee5adb040f7a8d0283698774c8
5
5
  SHA512:
6
- metadata.gz: 959ced0ea6380281e1038e478aeb71c141c62a73abe75a871a6fb28ffd9d0dbf0c10ec7b216e61ba7aa3758f33db2e849d3b7db3d76e70a57432193ba39e4913
7
- data.tar.gz: 40884bf25744d04ec1069b2cc573d90ac64483599e77f54d288e677c39765d248bee1882284e4325d19d8dc2a2a1a766e22f979fb026d623fc0bde8e2002ab4f
6
+ metadata.gz: 554ebde87b42acf04d3f0c0028bd385ce94ec3116e9a42f76fe556bc02c12d57fb2eb4583de64b35d52c65c71431f16a9b0df2faf4c0a5bd61b9c237028f80a9
7
+ data.tar.gz: 21e1001a7be2f47e970aeb5ebe43dc5ba246774244cde5412decb7c0a0c4dbe53f0f40059bc64f1709bb1073edc18fd4517f424dafc21102fd3ffc3c0d1d193b
@@ -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_64-darwin
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