Class: PrLog::Command

Inherits:
Object
  • Object
show all
Includes:
Events::Emitter
Defined in:
lib/pr_log/command.rb

Overview

Event emitting command base class

Direct Known Subclasses

FetchCommand

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.perform(options) {|command| ... } ⇒ Object

Yields:

  • (command)


10
11
12
13
14
# 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

Instance Method Details

#performObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/pr_log/command.rb', line 16

def perform
  raise(NotImplementedError)
end