Sha256: 89067d125f2f6e66ba0fc04674ced23bacbd6e38730e08bcbc3546af2181ab9c

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

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 usage
          "Usage: compass imports\n\n" +
          "Prints out the imports known to compass.\n"+
          "Useful for passing imports to the sass command line:\n" +
          "  sass -r compass `compass imports` a_file_using_compass.sass"
        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

2 entries across 2 versions & 1 rubygems

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