lxdev 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lxdev/main.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f40399ea2c4422f9a5b4b789d1b9347721fbc5e3
4
- data.tar.gz: 6dc6ebd630f013876eb045ff166fb986efce1e0b
3
+ metadata.gz: 5221cf6f16f2ed8d660930e28839eea78b7c22a3
4
+ data.tar.gz: f862f3ada3150682a22865c3dbbd530d70e153dd
5
5
  SHA512:
6
- metadata.gz: fe19314ba8389725a6153c0529135a2a63404d73f5ebeba49a36bd8a07e41a0e65fdbb7bd9a7a0617ed7cd35a636b6bac9e71f476fb7fcef0477f24d0df061d0
7
- data.tar.gz: 3edf3032409230181054edb3a27f9acb643c5a0af3ae0aa8387b90a03b53923bced72eec0ac17b7cac92063d100e0241f72e1a573241cbfa9c9cbaacad7228c9
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.5'
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 #{@name} --format=json")
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.5
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-03-21 00:00:00.000000000 Z
12
+ date: 2019-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json