Class: Fp::Commands::Base
- Inherits:
-
Object
- Object
- Fp::Commands::Base
- Defined in:
- lib/fp/commands/base.rb
Overview
Base class for all commands
Direct Known Subclasses
ConfigCmd, Help, List, Matrix, Profile, Projects, Propose, Report, Setup, Show, Surfaces, Version
Instance Method Summary collapse
-
#initialize(client: nil, output: nil, config: nil) ⇒ Base
constructor
A new instance of Base.
- #run(_args) ⇒ Object
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
13 14 15 |
# File 'lib/fp/commands/base.rb', line 13 def run(_args) raise NotImplementedError, "#{self.class}#run must be implemented" end |