# File lib/compass/commands/base.rb, line 12 def initialize(working_path, options) self.working_path = working_path.to_s self.options = options end
# File lib/compass/commands/base.rb, line 4 def self.register(command_name) Compass::Commands[command_name] = self end
# File lib/compass/commands/base.rb, line 17 def execute perform end
# File lib/compass/commands/base.rb, line 29 def failed! @failed = true end
# File lib/compass/commands/base.rb, line 21 def perform raise StandardError.new("Not Implemented") end
# File lib/compass/commands/base.rb, line 25 def successful? !@failed end
# File lib/compass/commands/base.rb, line 35 def framework unless Compass::Frameworks[options[:framework]] raise Compass::Error.new("No such framework: #{options[:framework].inspect}") end Compass::Frameworks[options[:framework]] end