fly.io-rails 0.0.3-x64-mingw32 → 0.0.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/x64-mingw32/flyctl.exe +0 -0
- data/lib/fly.io-rails/utils.rb +13 -17
- data/lib/fly.io-rails/version.rb +1 -1
- data/lib/generators/terraform_generator.rb +1 -1
- data/lib/tasks/fly.rake +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1038a350dec783bd6834b64705923d76ffd3282499068523c442547dd757e4c9
|
4
|
+
data.tar.gz: 28a70b7a2f55eb4a9e82a337d85de1ecfd017ff69f390540901803c63da6a09f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d1519bf8480940e1432853c3a68247a8f675d201714ab0435d7a045296eeb936a7cd82fb9d813662077b96a90ce449f0a05dea8b2ed55154b6f73849b0f25a
|
7
|
+
data.tar.gz: c238ae75ac6e682797f9bc147a7d44d2d97f8409b7c2d254f56b39621801c25174978a5c5d6023f0937af67960403030702ff31369b83d573aab53e52f43c2ba
|
data/exe/x64-mingw32/flyctl.exe
CHANGED
Binary file
|
data/lib/fly.io-rails/utils.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'pty'
|
2
2
|
|
3
3
|
module FlyIoRails
|
4
4
|
module Utils
|
@@ -9,27 +9,23 @@ module FlyIoRails
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.tee cmd
|
12
|
-
data =
|
12
|
+
data = []
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
STDERR.print raw_line
|
24
|
-
end
|
25
|
-
end
|
14
|
+
begin
|
15
|
+
PTY.spawn( cmd ) do |stdin, stdout, pid|
|
16
|
+
begin
|
17
|
+
# Do stuff with the output here. Just printing to show it works
|
18
|
+
stdin.each do |line|
|
19
|
+
print line
|
20
|
+
data << line
|
21
|
+
end
|
22
|
+
rescue Errno::EIO
|
26
23
|
end
|
27
24
|
end
|
28
|
-
|
29
|
-
thread.join
|
25
|
+
rescue PTY::ChildExited
|
30
26
|
end
|
31
27
|
|
32
|
-
|
28
|
+
data.join
|
33
29
|
end
|
34
30
|
|
35
31
|
end
|
data/lib/fly.io-rails/version.rb
CHANGED
data/lib/tasks/fly.rake
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
namespace :fly do
|
2
2
|
desc 'Deploy fly application'
|
3
3
|
task :deploy do
|
4
|
-
out
|
5
|
-
image =
|
4
|
+
out = FlyIoRails::Utils.tee 'fly deploy --build-only --push'
|
5
|
+
image = out[/image:\s+(.*)/, 1]
|
6
6
|
|
7
7
|
if image
|
8
8
|
tf = IO.read('main.tf')
|
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.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fly-ruby
|