Class: Webgen::CLI::RunCommand
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- Webgen::CLI::RunCommand
- Defined in:
- lib/webgen/cli/run_command.rb
Overview
The CLI command for rendering a webgen website.
Instance Method Summary collapse
-
#execute(args) ⇒ Object
Render the website.
-
#initialize ⇒ RunCommand
constructor
:nodoc:.
Constructor Details
#initialize ⇒ RunCommand
:nodoc:
10 11 12 13 |
# File 'lib/webgen/cli/run_command.rb', line 10 def initialize # :nodoc: super('render', false) self.short_desc = 'Render the webgen website' end |
Instance Method Details
#execute(args) ⇒ Object
Render the website.
16 17 18 |
# File 'lib/webgen/cli/run_command.rb', line 16 def execute(args) commandparser.create_website.render end |