Sha256: 6a653190f051d566a7eef36aef5403b5241f163fa6e017cf4e9e92255d207ad1

Contents?: true

Size: 1022 Bytes

Versions: 83

Compression:

Stored size: 1022 Bytes

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

83 entries across 82 versions & 6 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/compass-1.0.3/lib/compass/commands/list_frameworks.rb
compass-1.0.3 lib/compass/commands/list_frameworks.rb
compass-1.1.0.alpha.3 lib/compass/commands/list_frameworks.rb
compass-1.1.0.alpha.2 lib/compass/commands/list_frameworks.rb
compass-1.1.0.alpha.1 lib/compass/commands/list_frameworks.rb
compass-1.1.0.alpha.0 lib/compass/commands/list_frameworks.rb
compass-1.0.1 lib/compass/commands/list_frameworks.rb
compass-1.0.0 lib/compass/commands/list_frameworks.rb
compass-1.0.0.rc.1 lib/compass/commands/list_frameworks.rb
compass-1.0.0.rc.0 lib/compass/commands/list_frameworks.rb
compass-0.12.7 lib/compass/commands/list_frameworks.rb
compass-1.0.0.alpha.21 lib/compass/commands/list_frameworks.rb
compass-1.0.0.alpha.20 lib/compass/commands/list_frameworks.rb
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/lib/compass/commands/list_frameworks.rb
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/lib/compass/commands/list_frameworks.rb
compass-0.12.6 lib/compass/commands/list_frameworks.rb
compass-0.12.5 lib/compass/commands/list_frameworks.rb
compass-0.12.4 lib/compass/commands/list_frameworks.rb
compass-1.0.0.alpha.19 lib/compass/commands/list_frameworks.rb
compass-0.12.3 lib/compass/commands/list_frameworks.rb