Class: BitwardenSDKSecrets::CommandRunner

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

Instance Method Summary collapse

Constructor Details

#initialize(bitwarden_sdk, handle) ⇒ CommandRunner

Returns a new instance of CommandRunner.



5
6
7
8
# File 'lib/command_runner.rb', line 5

def initialize(bitwarden_sdk, handle)
  @bitwarden_sdk = bitwarden_sdk
  @handle = handle
end

Instance Method Details

#run(cmd) ⇒ Object

Parameters:

  • cmd (Dry-Struct)


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

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