29 lines
600 B
Ruby
29 lines
600 B
Ruby
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 |