Class: Awestruct::Commands::Manifest::TouchFile

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

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ TouchFile

Returns a new instance of TouchFile.



128
129
130
# File 'lib/awestruct/commands/manifest.rb', line 128

def initialize(path)
  @path = path
end

Instance Method Details

#perform(dir) ⇒ Object



132
133
134
# File 'lib/awestruct/commands/manifest.rb', line 132

def perform(dir)
  FileUtils.touch(File.join(dir, @path))
end

#unperform(dir) ⇒ Object



136
137
138
# File 'lib/awestruct/commands/manifest.rb', line 136

def unperform(dir)
  #nothing
end