Class: Awestruct::Commands::Manifest::TouchFile
- Inherits:
-
Object
- Object
- Awestruct::Commands::Manifest::TouchFile
- Defined in:
- lib/awestruct/commands/manifest.rb
Instance Method Summary (collapse)
-
- (TouchFile) initialize(path)
constructor
A new instance of TouchFile.
- - (Object) perform(dir)
- - (Object) unperform(dir)
Constructor Details
- (TouchFile) initialize(path)
A new instance of TouchFile
129 130 131 |
# File 'lib/awestruct/commands/manifest.rb', line 129 def initialize(path) @path = path end |
Instance Method Details
- (Object) perform(dir)
133 134 135 |
# File 'lib/awestruct/commands/manifest.rb', line 133 def perform(dir) FileUtils.touch(File.join(dir, @path)) end |
- (Object) unperform(dir)
137 138 139 |
# File 'lib/awestruct/commands/manifest.rb', line 137 def unperform(dir) #nothing end |