Class: TRMNLP::Commands::Build
- Defined in:
- lib/trmnlp/commands/build.rb
Defined Under Namespace
Classes: Options
Instance Method Summary collapse
Methods inherited from Base
#initialize, options_from, run
Constructor Details
This class inherits a constructor from TRMNLP::Commands::Base
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/trmnlp/commands/build.rb', line 10 def call context.validate! report_form_field_warnings context.poller.poll_data context.paths.create_build_dir Screen.all.each do |screen| output_path = context.paths.build_dir.join("#{screen.name}.html") reporter.info "Writing #{output_path}..." output_path.write(context.renderer.render_full_page(screen.name)) end reporter.info 'Done!' end |