Class: Lono::Clean

Inherits:
Object
  • Object
show all
Defined in:
lib/lono/clean.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Clean

Returns a new instance of Clean.



5
6
7
# File 'lib/lono/clean.rb', line 5

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/lono/clean.rb', line 4

def options
  @options
end

Instance Method Details

#runObject



9
10
11
12
13
# File 'lib/lono/clean.rb', line 9

def run
  puts "Cleaning up"
  puts "Removing output/ folder"
  FileUtils.rm_rf("#{Lono.config.output_path}")
end