Class: Usmu::Plugin::Core
- Inherits:
-
Object
- Object
- Usmu::Plugin::Core
- Defined in:
- lib/usmu/plugin/core.rb
Instance Method Summary collapse
Instance Method Details
#command_generate(args, options)
This method returns an undefined value.
17 18 19 20 |
# File 'lib/usmu/plugin/core.rb', line 17 def command_generate(args, ) @site_generator = Usmu::SiteGenerator.new(@ui.configuration) @site_generator.generate end |
#commands(ui, c) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/usmu/plugin/core.rb', line 5 def commands(ui, c) @log = Logging.logger[self] @log.debug('Adding core console commands...') @ui = ui c.command(:generate) do |command| command.syntax = 'usmu generate' command.description = 'Generates your website using the configuration specified.' command.action &method(:command_generate) end end |