fly.io-rails 0.0.14-x86-linux → 0.0.16-x86-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c65b20851530beca7c608846309367f1200d2bce057c7111c8562a769f3cd5c9
4
- data.tar.gz: f90d3eb1e4080f7d400b21ba9e2d833bc6c7fa8a8c46d56805faf53951421f3b
3
+ metadata.gz: 3ca2b35f45c729f5504f1ceb682ddb4c2cf12cf64023a4527ecf60799000ddcb
4
+ data.tar.gz: 9cb3d1d1d55ebb81ede83f469c8cd932ba6bde75a92602d8ee45b26b21e2d774
5
5
  SHA512:
6
- metadata.gz: ca44fe68fec4e2c8092959d98ae380120a66c3dbf607cebdfd148e84975923d452537e6b4a1d055f00325687d2c48935816eee3f1ec0d887c789cdabc0dc7222
7
- data.tar.gz: a90952a0223a11488818439ad5f31c66f70aae068884c8fc7d3e15d6199a9011131ab9f9965d1f10e4aa8ef4dd52a76638262580734c3c9f7e724de00432813d
6
+ metadata.gz: 1a8cc45745f4dd1036fee04d33afa6562810efb993bc1e220184076a725f7b368b8e49958643a42aa0bd8fce814b604af0640b741e4c13bba0885c6b62610bbe
7
+ data.tar.gz: 90392da9813c0eabd4c8ab011767ea2234043487ea3503ae1c3d1eff3d986a36dafb0512676ba2100d78b03a49b519a16772673c3babe610ca36ebd19ce91f49
@@ -1,3 +1,3 @@
1
1
  module Fly_io
2
- VERSION = '0.0.14'
2
+ VERSION = '0.0.16'
3
3
  end
@@ -8,6 +8,8 @@ class TerraformGenerator < Rails::Generators::Base
8
8
  class_option :region, type: :array, repeatable: true, default: []
9
9
 
10
10
  def terraform
11
+ source_paths.push File.expand_path('./templates', __dir__)
12
+
11
13
  cmd = if options[:name]
12
14
  "flyctl apps create #{options[:name].inspect} --org #{options[:org].inspect}"
13
15
  else
@@ -18,6 +20,7 @@ class TerraformGenerator < Rails::Generators::Base
18
20
  exit 1 unless output =~ /^New app created: /
19
21
 
20
22
  @app = output.split.last
23
+ template 'fly.toml.erb', 'fly.toml'
21
24
 
22
25
  if options[:region].empty?
23
26
  @regions = JSON.parse(`flyctl regions list --json`)['Regions'].
@@ -26,8 +29,6 @@ class TerraformGenerator < Rails::Generators::Base
26
29
  @regions = options[:regions].flatten
27
30
  end
28
31
 
29
- source_paths.push File.expand_path('./templates', __dir__)
30
-
31
32
  @ruby_version = RUBY_VERSION
32
33
  @bundler_version = Bundler::VERSION
33
34
  @node = File.exist? 'node_modules'
@@ -37,7 +38,6 @@ class TerraformGenerator < Rails::Generators::Base
37
38
 
38
39
  template 'Dockerfile.erb', 'Dockerfile'
39
40
  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,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.14
4
+ version: 0.0.16
5
5
  platform: x86-linux
6
6
  authors:
7
7
  - Sam Ruby