Class: Fp::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/fp/commands/base.rb

Overview

Base class for all commands

Instance Method Summary collapse

Constructor Details

#initialize(client: nil, output: nil, config: nil) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
# File 'lib/fp/commands/base.rb', line 7

def initialize(client: nil, output: nil, config: nil)
  @client = client
  @output = output
  @config = config
end

Instance Method Details

#run(_args) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/fp/commands/base.rb', line 13

def run(_args)
  raise NotImplementedError, "#{self.class}#run must be implemented"
end