Class: Awestruct::CLI::Manifest::RemoveFile
- Inherits:
-
Object
- Object
- Awestruct::CLI::Manifest::RemoveFile
- Defined in:
- lib/awestruct/cli/manifest.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ RemoveFile
constructor
A new instance of RemoveFile.
- #perform(dir) ⇒ Object
- #unperform(dir) ⇒ Object
Constructor Details
#initialize(path) ⇒ RemoveFile
Returns a new instance of RemoveFile.
149 150 151 |
# File 'lib/awestruct/cli/manifest.rb', line 149 def initialize(path) @path = path end |
Instance Method Details
#perform(dir) ⇒ Object
153 154 155 |
# File 'lib/awestruct/cli/manifest.rb', line 153 def perform(dir) FileUtils.rm(File.join(dir, @path), :force => true) end |
#unperform(dir) ⇒ Object
157 158 159 |
# File 'lib/awestruct/cli/manifest.rb', line 157 def unperform(dir) #nothing end |