Sha256: c7eadc026a37d880d1ed85183c691bb778273d0b7f585bff9f9085e4d1b83e6c

Contents?: true

Size: 1.34 KB

Versions: 41

Compression:

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

41 entries across 40 versions & 4 rubygems

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