Class: TTK::Strategies::Clean

Inherits:
Strategy show all
Includes:
Concrete
Defined in:
lib/ttk/strategies/Clean.rb

Instance Attribute Summary

Attributes inherited from Strategy

#status, #symtbl

Instance Method Summary collapse

Methods inherited from Strategy

#abort, #assign, #clean_instance_variables, #display_unexpected_exc, #display_unexpected_synflow_exc, #fail, #initialize, #initialize_flow_factory, #pass, #raise_error, #reject, #run, #running?, #skip, #skip_if_cached, #strategy, #strategy=, #symbols=, #testify, #timeout=, #to_s, #wclass=

Constructor Details

This class inherits a constructor from TTK::Strategies::Strategy

Instance Method Details

#run_implObject



14
15
16
17
18
19
20
21
# File 'lib/ttk/strategies/Clean.rb', line 14

def run_impl
  if @dir.is_a? Array
    @dir.each { |dir| FileUtils.rm_rf(dir) }
  else
    FileUtils.rm_rf(@dir)
  end
  pass
end