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
alphasights-compass-0.8.12 lib/compass/commands/base.rb
chriseppstein-compass-0.6.1 lib/compass/commands/base.rb
chriseppstein-compass-0.6.10 lib/compass/commands/base.rb
chriseppstein-compass-0.6.11 lib/compass/commands/base.rb
chriseppstein-compass-0.6.12 lib/compass/commands/base.rb
chriseppstein-compass-0.6.13 lib/compass/commands/base.rb
chriseppstein-compass-0.6.14 lib/compass/commands/base.rb
chriseppstein-compass-0.6.15 lib/compass/commands/base.rb
chriseppstein-compass-0.6.2 lib/compass/commands/base.rb
chriseppstein-compass-0.6.3 lib/compass/commands/base.rb
chriseppstein-compass-0.6.4 lib/compass/commands/base.rb
chriseppstein-compass-0.6.5 lib/compass/commands/base.rb
chriseppstein-compass-0.6.6 lib/compass/commands/base.rb
chriseppstein-compass-0.6.7 lib/compass/commands/base.rb
chriseppstein-compass-0.6.8 lib/compass/commands/base.rb
chriseppstein-compass-0.6.9 lib/compass/commands/base.rb
chriseppstein-compass-0.7.0 lib/compass/commands/base.rb
chriseppstein-compass-0.8.0 lib/compass/commands/base.rb
chriseppstein-compass-0.8.1 lib/compass/commands/base.rb
chriseppstein-compass-0.8.10 lib/compass/commands/base.rb