Class: Awestruct::CLI::Manifest::RemoveFile

Inherits:
Object
  • Object
show all
Defined in:
lib/awestruct/cli/manifest.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ RemoveFile



150
151
152
# File 'lib/awestruct/cli/manifest.rb', line 150

def initialize(path)
  @path = path
end

Instance Method Details

#perform(dir) ⇒ Object



154
155
156
# File 'lib/awestruct/cli/manifest.rb', line 154

def perform(dir)
  FileUtils.rm(File.join(dir, @path), :force => true)
end

#unperform(dir) ⇒ Object



158
159
160
# File 'lib/awestruct/cli/manifest.rb', line 158

def unperform(dir)
  #nothing
end