elecksee 1.0.6 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,13 +1,16 @@
1
- ## v0.1.6
1
+ ## v1.0.8
2
+ * Delete overlay directories using `sudo`
3
+
4
+ ## v1.0.6
2
5
  * Fix `sudo` issue on ephemeral creation (tmpdir)
3
6
  * Allow multi-retry on info since false error can be encountered if container is in shutdown phase
4
7
 
5
- ## v0.1.4
8
+ ## v1.0.4
6
9
  * Removes vendored lxc cookbook
7
10
  * Adds proper implementations for lxc and ephemerals
8
11
 
9
- ## v0.1.2
12
+ ## v1.0.2
10
13
  * Update Chef::Log usage to only apply when Chef is loaded
11
14
 
12
- ## v0.1.0
15
+ ## v1.0.0
13
16
  * Initial release
@@ -6,6 +6,8 @@ class Lxc
6
6
  attr_reader :name
7
7
  attr_reader :tmp_dir
8
8
 
9
+ include Helpers
10
+
9
11
  def initialize(name, args={})
10
12
  @name = name
11
13
  @tmp_dir = args[:tmp_dir] || '/tmp/lxc/ephemerals'
@@ -24,7 +26,9 @@ class Lxc
24
26
  end
25
27
 
26
28
  def destroy
27
- FileUtils.rm_rf(overlay_path) if File.directory?(overlay_path)
29
+ if(File.directory?(overlay_path))
30
+ command("rm -rf #{overlay_path}", :sudo => true)
31
+ end
28
32
  end
29
33
 
30
34
  end
@@ -2,5 +2,5 @@ module Elecksee
2
2
  class Version < Gem::Version
3
3
  end
4
4
 
5
- VERSION = Version.new('1.0.6')
5
+ VERSION = Version.new('1.0.8')
6
6
  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: 1.0.6
4
+ version: 1.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-26 00:00:00.000000000 Z
12
+ date: 2013-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-shellout
@@ -65,7 +65,7 @@ files:
65
65
  - README.md
66
66
  - LICENSE
67
67
  - bin/lxc-awesome-ephemeral
68
- - elecksee-1.0.4.gem
68
+ - elecksee-1.0.8.gem
69
69
  - CHANGELOG.md
70
70
  homepage: http://github.com/chrisroberts/elecksee
71
71
  licenses: []
data/elecksee-1.0.4.gem DELETED
Binary file