lxc 0.2.11 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/lxc/container.rb CHANGED
@@ -303,9 +303,16 @@ class LXC
303
303
 
304
304
  # Root directory for the containers file system
305
305
  #
306
+ # @param [Boolean] ephemeral True if we should construct a path to the
307
+ # union filesystem used by ephemeral containers. False if we should
308
+ # construct a traditional path.
306
309
  # @return [String] The root directory for the container.
307
- def fs_root
308
- File.join(self.container_root, 'rootfs')
310
+ def fs_root(ephemeral=false)
311
+ if (ephemeral == true)
312
+ File.join(self.container_root, 'delta0')
313
+ else
314
+ File.join(self.container_root, 'rootfs')
315
+ end
309
316
  end
310
317
 
311
318
  # Directory for the container
data/lib/lxc/version.rb CHANGED
@@ -2,7 +2,7 @@ class LXC
2
2
 
3
3
  unless const_defined?(:VERSION)
4
4
  # LXC Gem Version
5
- VERSION = "0.2.11"
5
+ VERSION = "0.2.12"
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.11
4
+ version: 0.2.12
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-15 00:00:00.000000000 Z
12
+ date: 2013-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ztk