class Compass::Commands::Imports

Attributes

options[RW]

Public Class Methods

new(working_path, options) click to toggle source
Calls superclass method
# File lib/compass/commands/imports.rb, line 6
def initialize(working_path, options)
  super
end

Public Instance Methods

description(command) click to toggle source
# File lib/compass/commands/imports.rb, line 16
def description(command)
  "Emit an imports suitable for passing to the sass command-line."
end
execute() click to toggle source
# File lib/compass/commands/imports.rb, line 10
def execute
  print ::Compass::Frameworks::ALL.map{|f|
            "-I #{f.stylesheets_directory}"
          }.join(' ')
end
parse!(arguments) click to toggle source
# File lib/compass/commands/imports.rb, line 25
def parse!(arguments)
  if arguments.join("").strip.size > 0
    raise OptionParser::ParseError, "This command takes no options or arguments."
  else
    {}
  end
end
usage() click to toggle source
# File lib/compass/commands/imports.rb, line 19
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