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



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