primary()
click to toggle source
# File lib/compass/commands/create_project.rb, line 80 def primary; true; end
# File lib/compass/commands/create_project.rb, line 72 def description(command) if command.to_sym == :create "Create a new compass project" else "Add compass to an existing project" end end
# File lib/compass/commands/create_project.rb, line 61 def option_parser(arguments) parser = Compass::Exec::CommandOptionParser.new(arguments) parser.extend(Compass::Exec::GlobalOptionsParser) parser.extend(Compass::Exec::ProjectOptionsParser) parser.extend(CreateProjectOptionsParser) end
# File lib/compass/commands/create_project.rb, line 82 def parse!(arguments) parser = option_parser(arguments) parse_options!(parser, arguments) parse_arguments!(parser, arguments) if parser.options[:framework] && parser.options[:bare] raise Compass::Error, "A bare project cannot be created when a framework is specified." end set_default_arguments(parser) parser.options end
# File lib/compass/commands/create_project.rb, line 109 def parse_arguments!(parser, arguments) if arguments.size == 1 parser.options[:project_name] = arguments.shift elsif arguments.size == 0 # default to the current directory. else raise Compass::Error, "Too many arguments were specified." end end
# File lib/compass/commands/create_project.rb, line 93 def parse_init!(arguments) parser = option_parser(arguments) parse_options!(parser, arguments) if arguments.size > 0 parser.options[:project_type] = arguments.shift.to_sym end parse_arguments!(parser, arguments) set_default_arguments(parser) parser.options end
# File lib/compass/commands/create_project.rb, line 104 def parse_options!(parser, arguments) parser.parse! parser end
# File lib/compass/commands/create_project.rb, line 80 def primary; true; end
Generated with the Darkfish Rdoc Generator 2.