Class: XPCOMCore::CommandParser::GenerateCommand::ApplicationCommand

Inherits:
JewelerBuilderCommand
  • Object
show all
Defined in:
lib/xpcomcore-rubygem/commands/generate/application.rb

Overview

TODO - move a bunch of stuff like gem_name and project_path to instance vars. Also move out the stub application copying stuff. Really, just clean this up in general.

Constant Summary collapse

BuilderTaskCode =
"require 'xpcomcore-rubygem/tasks/application_task.rb'\nXPCOMCore::Tasks::ApplicationTask.new"
StubRoot =
XPCOMCore::GemRoot + "ext/stub_runners"

Constants inherited from JewelerBuilderCommand

JewelerBuilderCommand::ApplicableJewelerOpts, JewelerBuilderCommand::DefaultGemDependencies, JewelerBuilderCommand::DefaultJewelerOpts, JewelerBuilderCommand::JewelerSuccess, JewelerBuilderCommand::RakefileGemDepFormat, JewelerBuilderCommand::RakefileGemSpecLine

Constants included from TemplateHelpers

TemplateHelpers::TemplateDir

Instance Method Summary collapse

Methods inherited from JewelerBuilderCommand

#execute

Methods included from TemplateHelpers

#copy_file, #copy_template, #copy_template_directory, #determine_template_vars, #eval_template, #handle_entry_creation, #handle_file, #mkpath

Constructor Details

#initializeApplicationCommand

Returns a new instance of ApplicationCommand.



15
16
17
18
19
# File 'lib/xpcomcore-rubygem/commands/generate/application.rb', line 15

def initialize
  super('application', false) # Doesn't take subcommands
  self.short_desc = "Generates an application"
  self.options = CmdParse::OptionParserWrapper.new { |opt_parse| add_jeweler_opts(opt_parse) }
end