Class: Kettle::Dev::InteractiveReleaseCommand
- Inherits:
-
Object
- Object
- Kettle::Dev::InteractiveReleaseCommand
- Defined in:
- lib/kettle/dev/interactive_release_command.rb
Instance Method Summary collapse
- #call(env, cmd) ⇒ Object
-
#initialize(secrets_provider:, input: $stdin, output: $stdout, error: $stderr, secret_event_handler: nil) ⇒ InteractiveReleaseCommand
constructor
A new instance of InteractiveReleaseCommand.
Constructor Details
#initialize(secrets_provider:, input: $stdin, output: $stdout, error: $stderr, secret_event_handler: nil) ⇒ InteractiveReleaseCommand
Returns a new instance of InteractiveReleaseCommand.
8 9 10 11 12 13 14 15 |
# File 'lib/kettle/dev/interactive_release_command.rb', line 8 def initialize(secrets_provider:, input: $stdin, output: $stdout, error: $stderr, secret_event_handler: nil) @secrets_provider = secrets_provider @input = input @output = output @error = error @secret_event_handler = secret_event_handler @gem_signing_passphrase = nil end |
Instance Method Details
#call(env, cmd) ⇒ Object
17 18 19 20 21 |
# File 'lib/kettle/dev/interactive_release_command.rb', line 17 def call(env, cmd) return call_with_pty(env, cmd) if pty_available? call_with_open3(env, cmd) end |