Class: Dflat::Version::Dir
- Inherits:
-
Dir
- Object
- Dir
- Dflat::Version::Dir
- Includes:
- LockIt::Mixin, Namaste::Mixin
- Defined in:
- lib/dflat/version.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#manifest ⇒ Object
20 21 22 23 24 |
# File 'lib/dflat/version.rb', line 20 def manifest data = '' data = open(manifest_path).read if File.exists? manifest_path @manifest ||= Checkm::Manifest.new data, :path => data_path end |
#manifest! ⇒ Object
26 27 28 29 |
# File 'lib/dflat/version.rb', line 26 def manifest! @manifest = nil manifest end |
#version ⇒ Object
17 18 19 |
# File 'lib/dflat/version.rb', line 17 def version File.basename(path) end |