Class: ManifestOpts

Inherits:
ToolOpts show all
Defined in:
lib/shed/opts/manifest_opts.rb

Overview

Manages the command line interface for the AS3 Manifest File generation tool.

Class Method Summary collapse

Methods inherited from ToolOpts

add_mandatory, add_tail, create_parser, parse, version

Class Method Details

.add_optional(op, config) ⇒ Object



22
23
24
25
26
27
# File 'lib/shed/opts/manifest_opts.rb', line 22

def self.add_optional(op,config)
  superclass.add_optional(op,config)
  op.on("-f", "--filter [STRING]", String, "Package filter, in the form of 'org.helvector', to include in the generated manifest.") do |value|
    config[:filter] = value
  end
end

.default_configObject



16
17
18
19
20
# File 'lib/shed/opts/manifest_opts.rb', line 16

def self.default_config
  dc = superclass.default_config
  dc[:output] = "manifest.xml"
  dc
end

.descriptionObject



12
13
14
# File 'lib/shed/opts/manifest_opts.rb', line 12

def self.description
  "ActionScript Manifest Generator Tool"
end

.nameObject



8
9
10
# File 'lib/shed/opts/manifest_opts.rb', line 8

def self.name
  "as-manifest"
end