Class: InfisicalSDK::CommandRunner
- Inherits:
-
Object
- Object
- InfisicalSDK::CommandRunner
- Defined in:
- lib/command_runner.rb
Overview
Run base SDK commands
Instance Method Summary collapse
-
#initialize(infisical_sdk, handle) ⇒ CommandRunner
constructor
A new instance of CommandRunner.
- #run(cmd) ⇒ Object
Constructor Details
#initialize(infisical_sdk, handle) ⇒ CommandRunner
Returns a new instance of CommandRunner.
6 7 8 9 |
# File 'lib/command_runner.rb', line 6 def initialize(infisical_sdk, handle) @infisical_sdk = infisical_sdk @handle = handle end |
Instance Method Details
#run(cmd) ⇒ Object
12 13 14 |
# File 'lib/command_runner.rb', line 12 def run(cmd) @infisical_sdk.run_command(cmd.to_json, @handle) end |