Class: Kettle::Dev::InteractiveReleaseCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/kettle/dev/interactive_release_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(secrets_provider:, input: $stdin, output: $stdout, error: $stderr) ⇒ InteractiveReleaseCommand

Returns a new instance of InteractiveReleaseCommand.



8
9
10
11
12
13
14
# File 'lib/kettle/dev/interactive_release_command.rb', line 8

def initialize(secrets_provider:, input: $stdin, output: $stdout, error: $stderr)
  @secrets_provider = secrets_provider
  @input = input
  @output = output
  @error = error
  @gem_signing_passphrase = nil
end

Instance Method Details

#call(env, cmd) ⇒ Object



16
17
18
19
20
# File 'lib/kettle/dev/interactive_release_command.rb', line 16

def call(env, cmd)
  return call_with_pty(env, cmd) if pty_available?

  call_with_open3(env, cmd)
end