module AsProject ####################################### # ProjectArguments class AsClassArguments < Hash attr_accessor :execution_dir, :name, :mxml, :component, :force, :build_test_case, :build_test_suites, :display_object, :template, @@TEMPLATE_TYPE = 'asclass' def initialize(dir=nil) if(dir.nil?) @execution_dir = Dir.pwd else @execution_dir = dir end @path_finder = PathFinder.new(@execution_dir) @force = false @mxml = false @component = false @template = nil self[:name] = nil self[:build_test_suites] = false # -s == --build-test-suites self[:build_test_case] = true # -n == --no-test-case ? self[:verbose] = true @class_templates = @path_finder.get_available_templates(@@TEMPLATE_TYPE) end def parse!(args) opts = OptionParser.new do |opts| opts.banner = < 0) self[:name] = args.shift.to_s end end def verify_template(template) if(!@class_templates.index template) msg = <