Sha256: e96aa25aa5009210d9eb6a4f5d4c0e81f590cc546182d4b67f50927a7790547a

Contents?: true

Size: 600 Bytes

Versions: 12

Compression:

Stored size: 600 Bytes

Contents

module Compass
  module Commands
    class Base

      include Actions

      attr_accessor :working_path, :options

      def initialize(working_path, options)
        self.working_path = working_path
        self.options = options
      end
      
      def perform
        raise StandardError.new("Not Implemented")
      end

      protected

      def framework
        unless Compass::Frameworks[options[:framework]]
          raise Compass::Error.new("No such framework: #{options[:framework].inspect}")
        end
        Compass::Frameworks[options[:framework]]
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
bsherman-compass-0.5.2 lib/compass/commands/base.rb
chriseppstein-compass-0.5.0 lib/compass/commands/base.rb
chriseppstein-compass-0.5.1 lib/compass/commands/base.rb
chriseppstein-compass-0.5.2 lib/compass/commands/base.rb
chriseppstein-compass-0.5.3 lib/compass/commands/base.rb
chriseppstein-compass-0.5.4 lib/compass/commands/base.rb
chriseppstein-compass-0.5.5 lib/compass/commands/base.rb
chriseppstein-compass-0.5.9 lib/compass/commands/base.rb
chriseppstein-compass-0.6.0 lib/compass/commands/base.rb
jwhitmire-compass-0.5.1.1 lib/compass/commands/base.rb
jwhitmire-compass-0.5.1.2 lib/compass/commands/base.rb
merbjedi-compass-0.5.0 lib/compass/commands/base.rb