class ClassVacuumOpts

Manages the command line interface for the class vacuum tool.

Public Class Methods

add_mandatory(op,config) click to toggle source
# File lib/shed/opts/class_vacuum_opts.rb, line 24
def self.add_mandatory(op,config)
  superclass.add_mandatory(op,config)

  op.on("-m", "--manifest FILE", "Path to the source manifest file.") do |value|
    config[:manifest] = value
  end

  op.on("-l", "--link-report FILE", "Path to the compiler link-report file.") do |value|
    config[:link_report] = value
  end
end
default_config() click to toggle source
# File lib/shed/opts/class_vacuum_opts.rb, line 16
def self.default_config
  dc = superclass.default_config
  dc[:output] = 'class-vacuum.txt'
  dc[:manifest] = 'manifest.xml'
  dc[:link_report] = 'link-report.xml'
  dc
end
description() click to toggle source
# File lib/shed/opts/class_vacuum_opts.rb, line 12
def self.description
  "ActionScript Class Vacuum Tool"
end
name() click to toggle source
# File lib/shed/opts/class_vacuum_opts.rb, line 8
def self.name
  "as-class-vacuum"
end