Sha256: cef839b324e930767c4e0a36efe8ac5068d14a873aee9f5a443d7e3809a2b99e

Contents?: true

Size: 1005 Bytes

Versions: 74

Compression:

Stored size: 1005 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 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

74 entries across 73 versions & 6 rubygems

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