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.



134
135
136
# File 'lib/awestruct/cli/manifest.rb', line 134

def initialize(path)
  @path = path
end

Instance Method Details

#perform(dir) ⇒ Object



138
139
140
# File 'lib/awestruct/cli/manifest.rb', line 138

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

#unperform(dir) ⇒ Object



142
143
144
# File 'lib/awestruct/cli/manifest.rb', line 142

def unperform(dir)
  #nothing
end