fly.io-rails 0.0.13 → 0.0.14

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: 5bb1cef3e9640f7281ba74125505cca0e8a1cc2aeb9c7d0c81381ab310c32202
4
- data.tar.gz: 5b124f788739f616fa20d523ff88ebd4e9121940757bf753e547218ae16b32b2
3
+ metadata.gz: 15c603605584b54ffebd9ec4dca378819be35ad10af27535975c9fff17985572
4
+ data.tar.gz: f340c0f0b06b3e512ea5c3e731292968486e9213936488c0e3e9ccba7dff2d60
5
5
  SHA512:
6
- metadata.gz: 3dbf081712e28c68ae67e3b6dc0e2f287f02db7bae53f925f5ada13caa539cb4bafecd7431b8c76b946806087fb93726c852f02d4238c1f562c85b978a07dd7b
7
- data.tar.gz: c9c04e0a140690e86efe01be232397f8d8f4d7ee2a5fb37cef2e1caa9029c2f9be769b368796692d1ed359fffa7782d72660a44b1f5faf2904006eabf3e237b6
6
+ metadata.gz: '08d49f650af670c1ced20dca8ffdc3e91c838b3830399dc8a9cfacdcb95f148301552b2f3574100d5948603e9a5bff8f650f652afb02ac56280ccb1a0730db92'
7
+ data.tar.gz: 4f68e1372390cf061da4c80812f35cbdd88189c365296109b2ffbd4cc6f1961a60b8eb7f99d2170c0c30d2f1482bd9dd11f64997df842fb6dc7153e9dc92d7fb
@@ -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: ruby
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
@@ -45,6 +45,7 @@ files:
45
45
  - lib/generators/templates/Dockerfile.erb
46
46
  - lib/generators/templates/dockerignore.erb
47
47
  - lib/generators/templates/fly.rake.erb
48
+ - lib/generators/templates/fly.toml.erb
48
49
  - lib/generators/templates/main.tf.erb
49
50
  - lib/generators/terraform_generator.rb
50
51
  - lib/tasks/fly.rake