Class: OmaGem::Client::Fake
- Inherits:
-
Client
- Object
- Client
- OmaGem::Client::Fake
- Defined in:
- lib/omagem/client.rb
Overview
A no-op client that records every call instead of running anything. Useful for tests and for "dry run" configuration building.
Instance Attribute Summary collapse
-
#calls ⇒ Object
readonly
Returns the value of attribute calls.
Instance Method Summary collapse
-
#initialize ⇒ Fake
constructor
A new instance of Fake.
- #run(*args) ⇒ Object
Constructor Details
#initialize ⇒ Fake
Returns a new instance of Fake.
44 45 46 47 |
# File 'lib/omagem/client.rb', line 44 def initialize super(command: 'omarchy') @calls = [] end |
Instance Attribute Details
#calls ⇒ Object (readonly)
Returns the value of attribute calls.
42 43 44 |
# File 'lib/omagem/client.rb', line 42 def calls @calls end |