lxdev 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 5221cf6f16f2ed8d660930e28839eea78b7c22a3
4
- data.tar.gz: f862f3ada3150682a22865c3dbbd530d70e153dd
3
+ metadata.gz: 89ef324866241a499cc2a534017f1fd7f9077283
4
+ data.tar.gz: 5b737412379553963e270bc83cef313a981c63a7
5
5
  SHA512:
6
- metadata.gz: cdefca9cc725cd38a22769b99c1edc75c2999041ef44079b07440d69088e1f08fd008bc96cbed9841d7bda6798be3cd533fd5c8e5b35a4ff1f059ee10496e24a
7
- data.tar.gz: 2a6debdc13521fdd7c360f761c19092eb178c5dc70309da42aca8edf67285c63d22cc9f2db45ad5a1413c7d056db9489fe29c1c74cd641e01c7395f5ed57ce32
6
+ metadata.gz: ee2d6b22de39bab310a02e2f416b169dc63b18578f92f6334f32fbc2bdf5fded3e93ab726ec4c0e7b056e12a0329a6a63f18dce693c85a5570b0dd299a3b8415
7
+ data.tar.gz: e1fe6a8b1b38faf1cb8ae31ffc3d360999cf3c889aa94dc3fcfbdc933b9f033b79cf059eed73c82fb4c410298514623c4da783454410ec35657b2d1e747c362d
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.6'
12
+ VERSION = '0.1.7'
13
13
 
14
14
  def initialize(config_file, state_file)
15
15
  @state_file = format(".lxdev/%s", state_file)
@@ -290,7 +290,7 @@ module LxDev
290
290
  redir_pids = []
291
291
  ports.each do |guest, host|
292
292
  puts "Forwarding #{get_container_ip}:#{guest} to local port #{host}"
293
- pid = System.spawn_exec("sudo redir --caddr=#{get_container_ip} --cport=#{guest} --lport=#{host}")
293
+ pid = System.spawn_exec("sudo redir --caddr=#{get_container_ip} --cport=#{guest} --lport=#{host}", silent: true)
294
294
  redir_pids << pid
295
295
  Process.detach(pid)
296
296
  end
data/lib/lxdev/system.rb CHANGED
@@ -12,8 +12,12 @@ module LxDev
12
12
  return_object
13
13
  end
14
14
 
15
- def self.spawn_exec(cmd)
16
- spawn(cmd)
15
+ def self.spawn_exec(cmd, silent: false)
16
+ if silent
17
+ spawn(cmd, [:out, :err] => "/dev/null")
18
+ else
19
+ spawn(cmd)
20
+ end
17
21
  end
18
22
  end
19
23
  end
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.6
4
+ version: 0.1.7
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-05-07 00:00:00.000000000 Z
12
+ date: 2019-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  requirements: []
71
71
  rubyforge_project:
72
- rubygems_version: 2.5.2.1
72
+ rubygems_version: 2.5.2.2
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Automagic development environment with LXD