Class: Recot::Tasks::ResdocTask

Inherits:
BaseTask
  • Object
show all
Defined in:
lib/recot/tasks/resdoc_task.rb

Overview

Generate resources html file task.

Constant Summary collapse

ROOT_DIR =

Path of gem root path.

"#{File.expand_path('../../../../', __FILE__)}".freeze
RESDOC_TEMPLATE =

Path of resdoc template.

"#{ROOT_DIR}/template/resdoc.html.erb".freeze

Instance Method Summary collapse

Methods inherited from BaseTask

#initialize

Constructor Details

This class inherits a constructor from Recot::Tasks::BaseTask

Instance Method Details

#run(args) ⇒ Object

Run the resdoc task.

Parameters:

Arguments of resource files.



23
24
25
26
27
28
29
# File 'lib/recot/tasks/resdoc_task.rb', line 23

def run(args)
  unless valid_state?(args)
    $stderr.puts "invalid state. files #{args}"
  else
    generate(args)
  end
end