Parent

Included Modules

Class/Module Index [+]

Quicksearch

Compass::Commands::Base

Attributes

options[RW]
working_path[RW]

Public Class Methods

new(working_path, options) click to toggle source
# File lib/compass/commands/base.rb, line 12
def initialize(working_path, options)
  self.working_path = working_path.to_s
  self.options = options
end
register(command_name) click to toggle source
# File lib/compass/commands/base.rb, line 4
def self.register(command_name)
  Compass::Commands[command_name] = self
end

Public Instance Methods

execute() click to toggle source
# File lib/compass/commands/base.rb, line 17
def execute
  perform
end
failed!() click to toggle source
# File lib/compass/commands/base.rb, line 29
def failed!
  @failed = true
end
perform() click to toggle source
# File lib/compass/commands/base.rb, line 21
def perform
  raise StandardError.new("Not Implemented")
end
successful?() click to toggle source
# File lib/compass/commands/base.rb, line 25
def successful?
  !@failed
end

Protected Instance Methods

framework() click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.