Class: Lxc::Storage::CloneDirectory
- Inherits:
-
OverlayDirectory
- Object
- OverlayDirectory
- Lxc::Storage::CloneDirectory
- Defined in:
- lib/elecksee/storage/overlay_directory.rb
Overview
Clone directory does the same as the overlay, just in a persistent location
Instance Attribute Summary
Attributes inherited from OverlayDirectory
Instance Method Summary collapse
-
#initialize(name, args = {}) ⇒ CloneDirectory
constructor
Create new instance.
- #overlay_path ⇒ String (also: #target_path)
Methods inherited from OverlayDirectory
Methods included from Helpers
#child_process_command, #detect_home, #log, #mixlib_shellout_command, #run_command, #sudo
Constructor Details
#initialize(name, args = {}) ⇒ CloneDirectory
Create new instance
67 68 69 70 71 |
# File 'lib/elecksee/storage/overlay_directory.rb', line 67 def initialize(name, args={}) args[:tmp_dir] = args[:dir] if args[:dir] args[:tmp_dir] || '/var/lib/lxc' super end |
Instance Method Details
#overlay_path ⇒ String Also known as: target_path
74 75 76 |
# File 'lib/elecksee/storage/overlay_directory.rb', line 74 def File.join(tmp_dir, name) end |