pauper 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pauper.rb +4 -3
- metadata +3 -3
data/lib/pauper.rb
CHANGED
@@ -340,7 +340,7 @@ EOF
|
|
340
340
|
end
|
341
341
|
|
342
342
|
def start_node(node_name)
|
343
|
-
cmd "sudo lxc-start -d -n '#{node_name}' >> pauper.log 2>&1"
|
343
|
+
cmd "sudo lxc-start -d -n '#{node_name}' -f /var/lib/lxc/#{node_name}/config >> pauper.log 2>&1"
|
344
344
|
end
|
345
345
|
|
346
346
|
def stop_node(node_name)
|
@@ -1003,8 +1003,9 @@ TEMPLATE
|
|
1003
1003
|
File.open(".tmp.lxc-pauper.conf",'w') do |f|
|
1004
1004
|
f.puts @template
|
1005
1005
|
end
|
1006
|
-
|
1007
|
-
system "sudo
|
1006
|
+
tmpl_dir = File.exist?('/usr/lib/lxc/templates') ? '/usr/lib/lxc/templates' : '/usr/share/lxc/templates'
|
1007
|
+
system "sudo mv .tmp.lxc-pauper.conf #{tmpl_dir}/lxc-pauper"
|
1008
|
+
system "sudo chmod +x #{tmpl_dir}/lxc-pauper"
|
1008
1009
|
end
|
1009
1010
|
|
1010
1011
|
class Config
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tyler McMullen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-03-18 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|