Sha256: d789b1f5880590446061cfdfe844311ffa6f6501e2c163b093995d2c379479a4
Contents?: true
Size: 1.4 KB
Versions: 2
Compression:
Stored size: 1.4 KB
Contents
require 'fileutils' require 'compass/commands/base' module Compass module Commands module ExtensionsOptionParser def set_options(opts) opts.banner = %Q{ Usage: compass extension install EXTENSION_NAME [options] compass extension uninstall EXTENSION_NAME [options] compass extension list Description: Manage the list of extensions on your system. Compass to all of your compass projects. Example: compass extension install sassy-buttons compass extension uninstall sassy-buttons } super end end class ExtensionCommand < Base register :extension class << self def option_parser(arguments) parser = Compass::Exec::CommandOptionParser.new(arguments) parser.extend(ExtensionsOptionParser) end def usage option_parser([]).to_s end def description(command) "Manage the list of compass extensions on your system" end def parse!(arguments) {:arguments => arguments} end end include InstallerCommand def initialize(working_path, options) super(working_path, options) end # all commands must implement perform def perform require 'rubygems/gem_runner' Gem::GemRunner.new.run(options[:arguments]) 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/extension_command.rb |
compass-sourcemaps-0.12.2.sourcemaps.57a186c | lib/compass/commands/extension_command.rb |