Class: Prick::DumpFile
- Inherits:
-
Object
- Object
- Prick::DumpFile
- Defined in:
- lib/prick/archive.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
- #delete ⇒ Object
- #exist? ⇒ Boolean
-
#initialize(project, name) ⇒ DumpFile
constructor
A new instance of DumpFile.
Constructor Details
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
6 7 8 |
# File 'lib/prick/archive.rb', line 6 def file @file end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/prick/archive.rb', line 5 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/prick/archive.rb', line 7 def path @path end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
4 5 6 |
# File 'lib/prick/archive.rb', line 4 def project @project end |
Instance Method Details
#delete ⇒ Object
18 |
# File 'lib/prick/archive.rb', line 18 def delete() FileUtils.rm_f(path) end |
#exist? ⇒ Boolean
16 |
# File 'lib/prick/archive.rb', line 16 def exist?() File.exist?(path) end |