Sha256: 715659469623f5790507b5af3077355d99a77b0af181c6e2ec1b14c81eb082e3

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

module Compass
  module Commands
    class ListFrameworks < ProjectBase
      attr_accessor :options
      register :frameworks
      def initialize(working_path, options)
        super
      end
  
      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
      class << self
        def option_parser(arguments)
          parser = Compass::Exec::CommandOptionParser.new(arguments)
          parser.extend(Compass::Exec::GlobalOptionsParser)
        end
        def usage
          option_parser([]).to_s
        end
        def description(command)
          "List the available frameworks"
        end
        def parse!(arguments)
          parser = option_parser(arguments)
          parser.parse!
          parser.options
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
compass-sourcemaps-0.12.3.sourcemaps.a4836f1 lib/compass/commands/list_frameworks.rb
compass-sourcemaps-0.12.2.sourcemaps.57a186c lib/compass/commands/list_frameworks.rb