Sha256: 7b6cb408826d45d2e3f724d20b719e4a45b6a17d8d917ed2cb839429b4337770
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
require 'compass/commands/project_base' require 'compass/commands/update_project' module Compass module Commands module InteractiveOptionsParser def set_options(opts) opts.banner = %Q{ Usage: compass interactive [path/to/project] [options] Description: Interactively evaluate SassScript Options: }.strip.split("\n").map{|l| l.gsub(/^ {0,10}/,'')}.join("\n") super end end class Interactive < ProjectBase register :interactive def initialize(working_path, options) super end def perform require 'sass/repl' Sass::Repl.new.run end class << self def option_parser(arguments) parser = Compass::Exec::CommandOptionParser.new(arguments) parser.extend(Compass::Exec::GlobalOptionsParser) parser.extend(Compass::Exec::ProjectOptionsParser) parser.extend(InteractiveOptionsParser) end def usage option_parser([]).to_s end def description(command) "Interactively evaluate SassScript" end def parse!(arguments) parser = option_parser(arguments) parser.parse! parser.options 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/interactive.rb |
compass-sourcemaps-0.12.2.sourcemaps.57a186c | lib/compass/commands/interactive.rb |