class Compass::Commands::ExtensionCommand

Public Class Methods

new(working_path, options) click to toggle source
Calls superclass method Compass::Commands::Base.new
# File lib/compass/commands/extension_command.rb, line 47
def initialize(working_path, options)
  super(working_path, options)
end

Public Instance Methods

description(command) click to toggle source
# File lib/compass/commands/extension_command.rb, line 38
def description(command)
  "Manage the list of compass extensions on your system"
end
option_parser(arguments) click to toggle source
# File lib/compass/commands/extension_command.rb, line 31
def option_parser(arguments)
  parser = Compass::Exec::CommandOptionParser.new(arguments)
  parser.extend(ExtensionsOptionParser)
end
parse!(arguments) click to toggle source
# File lib/compass/commands/extension_command.rb, line 41
def parse!(arguments)
  {:arguments => arguments}
end
perform() click to toggle source

all commands must implement perform

# File lib/compass/commands/extension_command.rb, line 52
def perform
  require 'rubygems/gem_runner'
  Gem::GemRunner.new.run(options[:arguments])
end
usage() click to toggle source
# File lib/compass/commands/extension_command.rb, line 35
def usage
  option_parser([]).to_s
end