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
148 149 150 |
# File 'lib/awestruct/cli/manifest.rb', line 148 def initialize(path) @path = path end |
Instance Method Details
#perform(dir) ⇒ Object
152 153 154 |
# File 'lib/awestruct/cli/manifest.rb', line 152 def perform(dir) FileUtils.rm(File.join(dir, @path), :force => true) end |
#unperform(dir) ⇒ Object
156 157 158 |
# File 'lib/awestruct/cli/manifest.rb', line 156 def unperform(dir) #nothing end |