Sha256: 070af6fe289efa72dab5464a9223edf94a5b9ce2baf1be77e782b6c948ed5fbe

Contents?: true

Size: 645 Bytes

Versions: 42

Compression:

Stored size: 645 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 execute
        perform
      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

42 entries across 42 versions & 4 rubygems

Version Path
compass-0.8.17 lib/compass/commands/base.rb
compass-0.8.16 lib/compass/commands/base.rb