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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/devbox_launcher/models/description.rb +32 -0
- data/lib/devbox_launcher/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25588592982c23d00fa42fbd84265d18c9f113ee46bcdb64e9c458115a0b65dc
|
4
|
+
data.tar.gz: 00560c6344d2f39489f4f6acdb9afc442a90b3d2dc98b98d5ca47fd0085980e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db2e46803d38b20624480c3dd8dfd9eadcd7fe315841ff6e57fd8b4a70e3752784d38917f8b7d00d41cca8feaadb3bcf44817e3daa7c7885aebdac007ff5fb54
|
7
|
+
data.tar.gz: 7f1a8c4f5eefd21c6cf32eb0d041b36ac8f495670e9440dfe0079445205c8b02d53db524a182f3c3d7764fe475613552a3e55e064ee52b354103e28045921b1a
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/Gemfile.lock
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
219
|
+
rubygems_version: 3.0.8
|
219
220
|
signing_key:
|
220
221
|
specification_version: 4
|
221
222
|
summary: Conveniently launch your devbox
|