Class: Webgen::CLI::RunCommand

Inherits:
CmdParse::Command
  • Object
show all
Defined in:
lib/webgen/cli/run_command.rb

Overview

The CLI command for rendering a webgen website.

Instance Method Summary collapse

Constructor Details

#initializeRunCommand

: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