class PrLog::Command

Event emitting command base class

Public Class Methods

perform(options) { |command| ... } click to toggle source
# File lib/pr_log/command.rb, line 10
def self.perform(options)
  command = new(Configuration.setup(options))
  yield(command) if block_given?
  command.perform
end

Public Instance Methods

perform() click to toggle source
# File lib/pr_log/command.rb, line 16
def perform
  raise(NotImplementedError)
end

Private Instance Methods

project() click to toggle source
# File lib/pr_log/command.rb, line 22
def project
  @project ||= Project.new(config)
end