Class: Recot::Tasks::ResdocTask
- 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
-
#run(args) ⇒ Object
Run the resdoc task.
Methods inherited from BaseTask
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 |