lxdev 0.1.7 → 0.1.8
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 +5 -5
- data/lib/lxdev/main.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 509a1fe96d989df0a53f8a9234129ccce89504521adb358cfcd837053db5f1cd
|
|
4
|
+
data.tar.gz: 12180a752fd2683f30cbfe15c853f6979fedbb3151547b3d7aefcc842c0d564e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3925a9f8ecbeb0e7ba875bf3ce3d2501e4654fdb96a52a197928f8903d22d0daa2d8e1771f54d8c2c3060d3204a03e21f28cb0e50d8f536e386b607d2f7c94b9
|
|
7
|
+
data.tar.gz: e091f4dda9ce752cf7f64b4f6464699189c9d3c380e995a63e390cf7f7b1223d9e6e9ea7143bce13c1236a01a364a7f0d0ce2b84cfa28a22b6c8483c83317618
|
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.8'
|
|
13
13
|
|
|
14
14
|
def initialize(config_file, state_file)
|
|
15
15
|
@state_file = format(".lxdev/%s", state_file)
|
|
@@ -221,6 +221,7 @@ module LxDev
|
|
|
221
221
|
puts "Launching #{@name}..."
|
|
222
222
|
System.exec("sudo lxc init #{@image} #{@name}")
|
|
223
223
|
System.exec(%{printf "uid #{@uid} 1001\ngid #{@gid} 1001"| sudo lxc config set #{@name} raw.idmap -})
|
|
224
|
+
System.exec(%{sudo lxc config set #{@name} boot.autostart false})
|
|
224
225
|
System.exec("sudo lxc start #{@name}")
|
|
225
226
|
puts "Creating user #{@user}..."
|
|
226
227
|
create_container_user(@user)
|
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.8
|
|
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:
|
|
12
|
+
date: 2020-03-03 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.
|
|
72
|
+
rubygems_version: 2.7.6
|
|
73
73
|
signing_key:
|
|
74
74
|
specification_version: 4
|
|
75
75
|
summary: Automagic development environment with LXD
|