Class: Recot::Commands::TreeGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/recot/commands/tree_generator.rb

Class Method Summary collapse

Class Method Details

.generate(test_no) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/recot/commands/tree_generator.rb', line 9

def self.generate(test_no)
  # generate test no tree
  path = "#{Recot.resources_dir}/#{test_no}"
  unless File.exists?(path)
    FileUtils.mkdir_p(path)
    # cache current number
    Recot::Cache::StateCache.store_no(test_no)
  end
end