Class: XPCOMCore::CommandParser::GenerateCommand::ApplicationCommand
- Inherits:
-
JewelerBuilderCommand
- Object
- CmdParse::Command
- JewelerBuilderCommand
- XPCOMCore::CommandParser::GenerateCommand::ApplicationCommand
- 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
Instance Method Summary collapse
-
#initialize ⇒ ApplicationCommand
constructor
A new instance of ApplicationCommand.
Methods inherited from JewelerBuilderCommand
Methods included from TemplateHelpers
#copy_file, #copy_template, #copy_template_directory, #determine_template_vars, #eval_template, #handle_entry_creation, #handle_file, #mkpath
Constructor Details
#initialize ⇒ ApplicationCommand
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. = CmdParse::OptionParserWrapper.new { |opt_parse| add_jeweler_opts(opt_parse) } end |