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