lib/pr_log/command.rb in pr_log-0.1.0 vs lib/pr_log/command.rb in pr_log-0.2.0

- old
+ new

@@ -1,19 +1,21 @@ require 'events' module PrLog # Event emitting command base class - class Command < Struct.new(:config) + class Command include Events::Emitter + pattr_initialize :config + def self.perform(options) command = new(Configuration.setup(options)) yield(command) if block_given? command.perform end def perform - fail(NotImplementedError) + raise(NotImplementedError) end private def project