Class: PgEventstore::CLI::Commands::BaseCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_eventstore/cli/commands/base_command.rb

Defined Under Namespace

Modules: BaseCommandActions

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ BaseCommand

Returns a new instance of BaseCommand.



34
35
36
# File 'lib/pg_eventstore/cli/commands/base_command.rb', line 34

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



31
32
33
# File 'lib/pg_eventstore/cli/commands/base_command.rb', line 31

def options
  @options
end

Class Method Details

.inherited(klass) ⇒ Object



25
26
27
28
# File 'lib/pg_eventstore/cli/commands/base_command.rb', line 25

def inherited(klass)
  super
  klass.prepend BaseCommandActions
end

Instance Method Details

#callInteger

Returns exit code.

Returns:

  • (Integer)

    exit code

Raises:

  • (NotImplementedError)


39
40
41
# File 'lib/pg_eventstore/cli/commands/base_command.rb', line 39

def call
  raise NotImplementedError
end