elecksee 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/elecksee.rb +2 -1
- data/lib/elecksee/lxc.rb +4 -5
- data/lib/elecksee/lxc_file_config.rb +1 -1
- data/lib/elecksee/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 561675fd80cb2364e14de56acb4d94b8245f6fbe
|
4
|
+
data.tar.gz: 26a7be375f06fd602f04b7f538def402fc1529c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd57c8504b042669ad01b96580d02dcc8719bac2a5cb00c4f4f02eb82d62091f32d73c98b5e933492b064cee749a238a36bcc15299e739d867b778652a1a918c
|
7
|
+
data.tar.gz: 7f832738ce46525f5ee4b6a3e7d27a12f1f215db41f2df05459e5fbe7632ec98210d7b4c0dd50cfafd34ce6e4660b33574cb248d9b0c7f3dc19ee73c113018d1
|
data/CHANGELOG.md
CHANGED
data/lib/elecksee.rb
CHANGED
@@ -10,9 +10,10 @@ class Lxc
|
|
10
10
|
autoload :Timeout,'elecksee/helpers'
|
11
11
|
autoload :CommandResult, 'elecksee/helpers'
|
12
12
|
autoload :Storage, 'elecksee/storage'
|
13
|
+
autoload :FileConfig, 'elecksee/lxc_file_config'
|
13
14
|
end
|
14
15
|
|
15
16
|
require 'elecksee/lxc'
|
16
17
|
require 'childprocess'
|
17
18
|
|
18
|
-
ChildProcess.posix_spawn =
|
19
|
+
ChildProcess.posix_spawn = false
|
data/lib/elecksee/lxc.rb
CHANGED
@@ -496,10 +496,9 @@ class Lxc
|
|
496
496
|
end
|
497
497
|
end
|
498
498
|
else
|
499
|
-
command
|
500
|
-
"lxc-attach -n #{name} #{
|
501
|
-
|
502
|
-
)
|
499
|
+
tmp_execute_script(command, :networking => false) do |script_path|
|
500
|
+
command("lxc-attach -n #{name} -- #{script_path}", args.merge(:sudo => true))
|
501
|
+
end
|
503
502
|
end
|
504
503
|
end
|
505
504
|
alias_method :knife_container, :direct_container_command
|
@@ -591,7 +590,7 @@ Lxc.default_ssh_key = [
|
|
591
590
|
'/opt/hw-lxc-config/id_rsa',
|
592
591
|
].detect{|key| File.exists?(key) }
|
593
592
|
Lxc.default_ssh_user = 'root'
|
594
|
-
Lxc.container_command_via = :
|
593
|
+
Lxc.container_command_via = :attach
|
595
594
|
|
596
595
|
# Monkey
|
597
596
|
class Rye::Box
|
@@ -92,7 +92,7 @@ class Lxc
|
|
92
92
|
struct._set_state(:value_collapse => true)
|
93
93
|
File.read(path).split("\n").each do |line|
|
94
94
|
parts = line.split('=').map(&:strip)
|
95
|
-
parts.last.replace("'#{parts.last}'")
|
95
|
+
parts.last.to_s.replace("'#{parts.last}'")
|
96
96
|
struct.instance_eval(parts.join(' = '))
|
97
97
|
end
|
98
98
|
@state = struct
|
data/lib/elecksee/version.rb
CHANGED