devbox_launcher 0.3.1 → 0.3.2

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: 452b640a1f3b25789f24d33da5c41b46e974fa88ab0a4078eea5c4880cac1a00
4
- data.tar.gz: 59a2965f4f0f1ca5a9758f30c4de941319b29bc5b8e9fbd9d0ea227fd6cab13e
3
+ metadata.gz: 25588592982c23d00fa42fbd84265d18c9f113ee46bcdb64e9c458115a0b65dc
4
+ data.tar.gz: 00560c6344d2f39489f4f6acdb9afc442a90b3d2dc98b98d5ca47fd0085980e2
5
5
  SHA512:
6
- metadata.gz: e5db95617c9d43d952acc269794bdde185eb6fb2dbd143e91e5715ae90596eda82813fc0b8f37716d1dec5689c1e19398052b396e42fa879b5cde6d54d06e3ef
7
- data.tar.gz: '009f47d05871bfdae83c23736a21dfb2b9b617edba29acc7741a43d499b8c2927716561c6f9533c15c237c26f6edefe644f20f8714ded7ee980508752203ee9a'
6
+ metadata.gz: db2e46803d38b20624480c3dd8dfd9eadcd7fe315841ff6e57fd8b4a70e3752784d38917f8b7d00d41cca8feaadb3bcf44817e3daa7c7885aebdac007ff5fb54
7
+ data.tar.gz: 7f1a8c4f5eefd21c6cf32eb0d041b36ac8f495670e9440dfe0079445205c8b02d53db524a182f3c3d7764fe475613552a3e55e064ee52b354103e28045921b1a
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.3.2]
8
+ ### Fixed
9
+ - Fix: add missing file
10
+
7
11
  ## [0.3.1]
8
12
  ### Fixed
9
13
  - Recover when the devbox is in a shutdown cycle
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devbox_launcher (0.3.1)
4
+ devbox_launcher (0.3.2)
5
5
  activesupport (~> 6.0)
6
6
  bcrypt_pbkdf (~> 1.0)
7
7
  ed25519 (~> 1.2)
@@ -0,0 +1,32 @@
1
+ module DevboxLauncher
2
+ class Description
3
+
4
+ def initialize(yaml)
5
+ @desc = YAML.load(yaml)
6
+ end
7
+
8
+ def ip
9
+ return @ip if @ip
10
+ network_interface = network_interfaces.first
11
+ access_configs = network_interface["accessConfigs"]
12
+
13
+ access_config = access_configs.find do |c|
14
+ c["kind"] == "compute#accessConfig"
15
+ end
16
+ @ip = access_config["natIP"]
17
+ end
18
+
19
+ def status
20
+ @status ||= @desc["status"]
21
+ end
22
+
23
+ def network_interfaces
24
+ @network_interfaces ||= @desc["networkInterfaces"]
25
+ end
26
+
27
+ def running?
28
+ status == "RUNNING"
29
+ end
30
+
31
+ end
32
+ end
@@ -1,3 +1,3 @@
1
1
  module DevboxLauncher
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devbox_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-24 00:00:00.000000000 Z
11
+ date: 2020-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -190,6 +190,7 @@ files:
190
190
  - devbox_launcher.gemspec
191
191
  - lib/devbox_launcher.rb
192
192
  - lib/devbox_launcher/cli.rb
193
+ - lib/devbox_launcher/models/description.rb
193
194
  - lib/devbox_launcher/version.rb
194
195
  - lib/devbox_launcher/watchman.rb
195
196
  homepage: https://github.com/bloom-solutions/devbox_launcher
@@ -215,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
216
  - !ruby/object:Gem::Version
216
217
  version: '0'
217
218
  requirements: []
218
- rubygems_version: 3.0.3
219
+ rubygems_version: 3.0.8
219
220
  signing_key:
220
221
  specification_version: 4
221
222
  summary: Conveniently launch your devbox