linux_container 1.1 → 1.2
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 +15 -0
- data/CHANGELOG +1 -0
- data/lib/linux_container.rb +6 -7
- data/linux_container.gemspec +3 -12
- metadata +5 -7
checksums.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
ZDM4ZDdiZDVmZDI0OTAyYzVjMDBlZWMzY2ZjMzRjZTNjMjhhZTQ5MQ==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
YTBjMTEwODU4YjVmMDFlOTUwNWJjMjI1Nzc2YjViM2M2MjMyOWFmOQ==
|
|
7
|
+
!binary "U0hBNTEy":
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
YmYzZmFmODE2YjI5MmNhOWIyZDJkMTMyZTg5YTU5M2IzNTFhNTk2NWFhYzU5
|
|
10
|
+
MWQ5NDEyOTVlZGI2MWIwZmY1Y2EwNzFmYzIwZGNhMjRkNmU2YmQxNDJiOGYz
|
|
11
|
+
YzBjMzliZjY3Y2MzMzViNWM4M2IzMGZiNjY0YTZjNTE4Yzk4ZDk=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
YTI1MDk1OGJiODkzZjQ1NGZhM2NiNmY2N2JiZmU1MTNjNmYzMjIxMDEzYzIw
|
|
14
|
+
NzY5YTk0ZTU4ODU3ZThmNjkyYjRlMzk2NzgzNzBlNjIxOTBiYmEyMzdiNzMx
|
|
15
|
+
NTg0M2I0MTRmZjg0MWIxZTZkMzIwOWE5NTY5OWQxODBkOTMxN2Y=
|
data/CHANGELOG
CHANGED
data/lib/linux_container.rb
CHANGED
|
@@ -46,16 +46,15 @@ class LinuxContainer
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def start_ephemeral(config={})
|
|
49
|
-
|
|
49
|
+
argshash = {'orig' => name, 'user' => username, 'union-type' => 'overlayfs'}.merge!(config)
|
|
50
50
|
args = []
|
|
51
|
-
if self.class.version == '0.8'
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
else
|
|
55
|
-
defaults.merge!('union-type' => 'overlayfs')
|
|
51
|
+
if self.class.version == '0.8' # ubuntu quantal and older
|
|
52
|
+
args.push '-U', argshash.delete('union-type')
|
|
53
|
+
else # ubuntu raring and newer
|
|
56
54
|
args << '-d'
|
|
57
55
|
end
|
|
58
|
-
args.push *
|
|
56
|
+
args.push *argshash.map {|k, v| "--#{k}=#{v}" }
|
|
57
|
+
|
|
59
58
|
logfile_path = bg_execute('lxc-start-ephemeral', *args)
|
|
60
59
|
newname = nil
|
|
61
60
|
while newname.nil?
|
data/linux_container.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "linux_container"
|
|
5
|
-
s.version = "1.
|
|
5
|
+
s.version = "1.2"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Andrew Snow"]
|
|
9
|
-
s.date = "2013-
|
|
9
|
+
s.date = "2013-04-10"
|
|
10
10
|
s.description = "Ruby gem for ephemeral LXC linux containers"
|
|
11
11
|
s.email = "andrew@modulus.org"
|
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG", "README.md", "lib/linux_container.rb"]
|
|
@@ -15,16 +15,7 @@ Gem::Specification.new do |s|
|
|
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Linux_container", "--main", "README.md"]
|
|
16
16
|
s.require_paths = ["lib"]
|
|
17
17
|
s.rubyforge_project = "linux_container"
|
|
18
|
-
s.rubygems_version = "
|
|
18
|
+
s.rubygems_version = "2.0.3"
|
|
19
19
|
s.summary = "Ruby gem for ephemeral LXC linux containers"
|
|
20
20
|
s.test_files = ["test/test_all.rb"]
|
|
21
|
-
|
|
22
|
-
if s.respond_to? :specification_version then
|
|
23
|
-
s.specification_version = 3
|
|
24
|
-
|
|
25
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
26
|
-
else
|
|
27
|
-
end
|
|
28
|
-
else
|
|
29
|
-
end
|
|
30
21
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: linux_container
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: '1.2'
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Andrew Snow
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
11
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
|
13
12
|
dependencies: []
|
|
14
13
|
description: Ruby gem for ephemeral LXC linux containers
|
|
15
14
|
email: andrew@modulus.org
|
|
@@ -29,6 +28,7 @@ files:
|
|
|
29
28
|
- linux_container.gemspec
|
|
30
29
|
homepage: https://github.com/andys/linux_container
|
|
31
30
|
licenses: []
|
|
31
|
+
metadata: {}
|
|
32
32
|
post_install_message:
|
|
33
33
|
rdoc_options:
|
|
34
34
|
- --line-numbers
|
|
@@ -40,22 +40,20 @@ rdoc_options:
|
|
|
40
40
|
require_paths:
|
|
41
41
|
- lib
|
|
42
42
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
43
|
-
none: false
|
|
44
43
|
requirements:
|
|
45
44
|
- - ! '>='
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
46
|
version: '0'
|
|
48
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
48
|
requirements:
|
|
51
49
|
- - ! '>='
|
|
52
50
|
- !ruby/object:Gem::Version
|
|
53
51
|
version: '1.2'
|
|
54
52
|
requirements: []
|
|
55
53
|
rubyforge_project: linux_container
|
|
56
|
-
rubygems_version:
|
|
54
|
+
rubygems_version: 2.0.3
|
|
57
55
|
signing_key:
|
|
58
|
-
specification_version:
|
|
56
|
+
specification_version: 4
|
|
59
57
|
summary: Ruby gem for ephemeral LXC linux containers
|
|
60
58
|
test_files:
|
|
61
59
|
- test/test_all.rb
|