Class: BitwardenSDKSecrets::CommandRunner
- Inherits:
-
Object
- Object
- BitwardenSDKSecrets::CommandRunner
- Defined in:
- lib/command_runner.rb
Instance Method Summary collapse
-
#initialize(bitwarden_sdk, handle) ⇒ CommandRunner
constructor
A new instance of CommandRunner.
- #run(cmd) ⇒ Object
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
11 12 13 |
# File 'lib/command_runner.rb', line 11 def run(cmd) @bitwarden_sdk.run_command(cmd.to_json, @handle) end |