lxc 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -305,7 +305,14 @@ class LXC
305
305
  #
306
306
  # @return [String] The root directory for the container.
307
307
  def fs_root
308
- File.join('/', 'var', 'lib', 'lxc', self.name, 'rootfs')
308
+ File.join(self.container_root, 'rootfs')
309
+ end
310
+
311
+ # Directory for the container
312
+ #
313
+ # @return [String] The directory for the container.
314
+ def container_root
315
+ File.join('/', 'var', 'lib', 'lxc', self.name)
309
316
  end
310
317
 
311
318
  # Provides a concise string representation of the class
@@ -2,7 +2,7 @@ class LXC
2
2
 
3
3
  unless const_defined?(:VERSION)
4
4
  # LXC Gem Version
5
- VERSION = "0.2.10"
5
+ VERSION = "0.2.11"
6
6
  end
7
7
 
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lxc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
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-05 00:00:00.000000000 Z
12
+ date: 2013-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ztk