Class: XPCOMCore::CommandParser::GenerateCommand

Inherits:
CmdParse::Command
  • Object
show all
Defined in:
lib/xpcomcore-rubygem/commands/generate.rb,
lib/xpcomcore-rubygem/commands/generate/library.rb,
lib/xpcomcore-rubygem/commands/generate/application.rb,
lib/xpcomcore-rubygem/commands/generate/template_helpers.rb,
lib/xpcomcore-rubygem/commands/generate/jeweler_builder_command.rb

Defined Under Namespace

Modules: TemplateHelpers Classes: ApplicationCommand, GenerationError, JewelerBuilderCommand, LibraryCommand

Instance Method Summary collapse

Constructor Details

#initializeGenerateCommand

Returns a new instance of GenerateCommand.



10
11
12
13
14
15
# File 'lib/xpcomcore-rubygem/commands/generate.rb', line 10

def initialize
  super('generate', true,  # Takes subcommands
                    true)  # Uses partial command matching
  self.short_desc = "Generates an XPCOMCore based XUL application or library packaged in a RubyGem."
  [ApplicationCommand, LibraryCommand].each { |k| add_command(k.new) }
end