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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fa238c10437677255df26d118e761553342b5a6
4
- data.tar.gz: f22d8b320fde7d3a531728bf77b3613883d2e6d1
3
+ metadata.gz: 561675fd80cb2364e14de56acb4d94b8245f6fbe
4
+ data.tar.gz: 26a7be375f06fd602f04b7f538def402fc1529c1
5
5
  SHA512:
6
- metadata.gz: de48a9a73b02e227bffbc8f8094355157acdd54bdb1214f3e2b281009827de15ac4261cb084749a840f5b30a1090796eb036eace96badb3ef91d1237eee6d2d0
7
- data.tar.gz: 2cd3efa4127547d4ecb1f5f09abf93dfad46313bd38a0baac1686fe29506908c9405d22398fdd4e72423862e34c0f7c262cca99ec2865e6186d487747f14d620
6
+ metadata.gz: bd57c8504b042669ad01b96580d02dcc8719bac2a5cb00c4f4f02eb82d62091f32d73c98b5e933492b064cee749a238a36bcc15299e739d867b778652a1a918c
7
+ data.tar.gz: 7f832738ce46525f5ee4b6a3e7d27a12f1f215db41f2df05459e5fbe7632ec98210d7b4c0dd50cfafd34ce6e4660b33574cb248d9b0c7f3dc19ee73c113018d1
@@ -1,3 +1,8 @@
1
+ ## v2.0.2
2
+ * Disable spawn by default
3
+ * Use attach by default
4
+ * Fix typing issue around string manipulations
5
+
1
6
  ## v2.0.0
2
7
  * [fix] Use sudo helper when cloning
3
8
  * [enhancement] Disable retry on ephemeral command
@@ -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 = true
19
+ ChildProcess.posix_spawn = false
@@ -496,10 +496,9 @@ class Lxc
496
496
  end
497
497
  end
498
498
  else
499
- command(
500
- "lxc-attach -n #{name} #{command}",
501
- args.merge(:sudo => true)
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 = :ssh
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
@@ -1,4 +1,4 @@
1
1
  module Elecksee
2
2
  # Current library version
3
- VERSION = Gem::Version.new('2.0.0')
3
+ VERSION = Gem::Version.new('2.0.2')
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elecksee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts