Class: Compass::Commands::Default
- Defined in:
- lib/compass/commands/default.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes included from Actions
Class Method Summary collapse
- .option_parser(arguments) ⇒ Object
-
.parse!(arguments) ⇒ Object
def usage $stderr.puts caller.join(“n”) “XXX” end.
Instance Method Summary collapse
Methods inherited from Base
#failed!, #initialize, #perform, register, #successful?
Methods included from Actions
#basename, #copy, #directory, #log_action, #process_erb, #relativize, #remove, #separate, #strip_trailing_separator, #write_file
Constructor Details
This class inherits a constructor from Compass::Commands::Base
Class Method Details
.option_parser(arguments) ⇒ Object
27 28 29 30 |
# File 'lib/compass/commands/default.rb', line 27 def option_parser(arguments) parser = Compass::Exec::CommandOptionParser.new(arguments) parser.extend(DefaultOptionsParser) end |
.parse!(arguments) ⇒ Object
def usage
$stderr.puts caller.join("\n")
"XXX"
end
35 36 37 38 39 40 41 42 |
# File 'lib/compass/commands/default.rb', line 35 def parse!(arguments) parser = option_parser(arguments) parser.parse! parser.[:command] ||= Proc.new do Help.new(working_path, .merge(:help_command => "help")) end parser. end |
Instance Method Details
#execute ⇒ Object
45 46 47 |
# File 'lib/compass/commands/default.rb', line 45 def execute instance_eval(&[:command]).execute end |