Sha256: 3981cc44ed196c72dcc9d0219460ca4f5d5c864dfc183da3fa9fb4ccfc70fa2e

Contents?: true

Size: 735 Bytes

Versions: 10

Compression:

Stored size: 735 Bytes

Contents

module Compass
  module Commands
    class Imports < ProjectBase
      attr_accessor :options
      register :imports
      def initialize(working_path, options)
        super
      end
  
      def execute
        print ::Compass::Frameworks::ALL.map{|f|
                  "-I #{f.stylesheets_directory}"
                }.join(' ')
      end
      class << self
        def description(command)
          "Emit an imports suitable for passing to the sass command-line."
        end
        def parse!(arguments)
          if arguments.join("").strip.size > 0
            raise OptionParser::ParseError, "This command takes no options or arguments."
          else
            {}
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
compass-0.10.5 lib/compass/commands/imports.rb
compass-0.10.5.pre.1 lib/compass/commands/imports.rb
compass-0.10.4 lib/compass/commands/imports.rb
compass-0.10.4.pre.4 lib/compass/commands/imports.rb
compass-0.10.4.pre.3 lib/compass/commands/imports.rb
compass-0.10.4.pre.2 lib/compass/commands/imports.rb
compass-0.10.3 lib/compass/commands/imports.rb
compass-0.10.3.pre.1 lib/compass/commands/imports.rb
compass-0.10.2 lib/compass/commands/imports.rb
compass-0.10.1 lib/compass/commands/imports.rb