lxdev 0.1.5 → 0.1.6
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 +4 -4
- data/lib/lxdev/main.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5221cf6f16f2ed8d660930e28839eea78b7c22a3
|
|
4
|
+
data.tar.gz: f862f3ada3150682a22865c3dbbd530d70e153dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdefca9cc725cd38a22769b99c1edc75c2999041ef44079b07440d69088e1f08fd008bc96cbed9841d7bda6798be3cd533fd5c8e5b35a4ff1f059ee10496e24a
|
|
7
|
+
data.tar.gz: 2a6debdc13521fdd7c360f761c19092eb178c5dc70309da42aca8edf67285c63d22cc9f2db45ad5a1413c7d056db9489fe29c1c74cd641e01c7395f5ed57ce32
|
data/lib/lxdev/main.rb
CHANGED
|
@@ -9,7 +9,7 @@ module LxDev
|
|
|
9
9
|
WHITELISTED_SUDO_COMMANDS = ["lxc", "redir", "kill"]
|
|
10
10
|
SHELLS = ["bash", "zsh", "sh", "csh", "tcsh", "ash"]
|
|
11
11
|
BOOT_TIMEOUT = 30
|
|
12
|
-
VERSION = '0.1.
|
|
12
|
+
VERSION = '0.1.6'
|
|
13
13
|
|
|
14
14
|
def initialize(config_file, state_file)
|
|
15
15
|
@state_file = format(".lxdev/%s", state_file)
|
|
@@ -235,7 +235,7 @@ module LxDev
|
|
|
235
235
|
|
|
236
236
|
def get_container_status
|
|
237
237
|
return @status unless @status.nil?
|
|
238
|
-
command_result = System.exec("sudo lxc list
|
|
238
|
+
command_result = System.exec("sudo lxc list ^#{@name}$ --format=json")
|
|
239
239
|
@status = JSON.parse(command_result.output)
|
|
240
240
|
end
|
|
241
241
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lxdev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian Lønaas
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: json
|