Class: Lono::Clean
- Inherits:
-
Object
- Object
- Lono::Clean
- Defined in:
- lib/lono/clean.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Clean
constructor
A new instance of Clean.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Clean
Returns a new instance of Clean.
5 6 7 |
# File 'lib/lono/clean.rb', line 5 def initialize(={}) = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/lono/clean.rb', line 4 def end |
Instance Method Details
#run ⇒ Object
9 10 11 12 13 |
# File 'lib/lono/clean.rb', line 9 def run puts "Clean: removing output/ and tmp/ folder" FileUtils.rm_rf("#{Lono.config.output_path}") FileUtils.rm_rf("#{Lono.root}/tmp") end |