Class: InfisicalSDK::CommandRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/command_runner.rb

Overview

Run base SDK commands

Instance Method Summary collapse

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

Parameters:

  • cmd (Dry-Struct)


12
13
14
# File 'lib/command_runner.rb', line 12

def run(cmd)
  @infisical_sdk.run_command(cmd.to_json, @handle)
end