Class: Awestruct::CLI::Manifest::TouchFile

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

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ TouchFile

Returns a new instance of TouchFile.



140
141
142
# File 'lib/awestruct/cli/manifest.rb', line 140

def initialize(path)
  @path = path
end

Instance Method Details

#perform(dir) ⇒ Object



144
145
146
# File 'lib/awestruct/cli/manifest.rb', line 144

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

#unperform(dir) ⇒ Object



148
149
150
# File 'lib/awestruct/cli/manifest.rb', line 148

def unperform(dir)
  #nothing
end