class Compass::Commands::ListFrameworks

Attributes

options[RW]

Public Class Methods

new(working_path, options) click to toggle source
Calls superclass method
# File lib/compass/commands/list_frameworks.rb, line 6
def initialize(working_path, options)
  super
end

Public Instance Methods

description(command) click to toggle source
# File lib/compass/commands/list_frameworks.rb, line 28
def description(command)
  "List the available frameworks"
end
execute() click to toggle source
# File lib/compass/commands/list_frameworks.rb, line 10
def execute
  if options[:quiet]
    Compass::Frameworks::ALL.each do |framework|
      puts framework.name unless framework.name =~ /^_/
    end
  else
    puts "Available Frameworks & Patterns:\n\n"
    puts Compass::Frameworks.pretty_print
  end
end
option_parser(arguments) click to toggle source
# File lib/compass/commands/list_frameworks.rb, line 21
def option_parser(arguments)
  parser = Compass::Exec::CommandOptionParser.new(arguments)
  parser.extend(Compass::Exec::GlobalOptionsParser)
end
parse!(arguments) click to toggle source
# File lib/compass/commands/list_frameworks.rb, line 31
def parse!(arguments)
  parser = option_parser(arguments)
  parser.parse!
  parser.options
end
usage() click to toggle source
# File lib/compass/commands/list_frameworks.rb, line 25
def usage
  option_parser([]).to_s
end