Class: FeduxOrgStdlib::Rake::ProjectTask
- Defined in:
- lib/fedux_org_stdlib/rake/project_task.rb
Overview
Project Task
Instance Attribute Summary collapse
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Attributes inherited from Task
#description, #name, #verbose, #verbose (true)
Instance Method Summary collapse
-
#initialize(report_file: File.join(Dir.getwd, 'reports', 'Overview.html'), plan_file: File.join(Dir.getwd, 'plan.tjp'), additional_files: [], **args) ⇒ ProjectTask
constructor
Create a new project task.
Methods inherited from Task
Constructor Details
#initialize(report_file: File.join(Dir.getwd, 'reports', 'Overview.html'), plan_file: File.join(Dir.getwd, 'plan.tjp'), additional_files: [], **args) ⇒ ProjectTask
Create a new project task
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/fedux_org_stdlib/rake/project_task.rb', line 40 def initialize( report_file: File.join(Dir.getwd, 'reports', 'Overview.html'), plan_file: File.join(Dir.getwd, 'plan.tjp'), additional_files: [], **args ) super(**args) plan = FeduxOrgStdlib::Project::Plan.new(main_file: plan_file, additional_files: additional_files) @report = FeduxOrgStdlib::Project::Report.new(plan: plan, output_file: report_file) end |
Instance Attribute Details
#report ⇒ Object (readonly)
Returns the value of attribute report.
13 14 15 |
# File 'lib/fedux_org_stdlib/rake/project_task.rb', line 13 def report @report end |