class Fastlane::Helper::BitwardenHelper

Public Class Methods

new(cli_path) click to toggle source
# File lib/fastlane/plugin/bitwarden/helper/bitwarden_helper.rb, line 8
def initialize(cli_path)
  @cli_path = cli_path || "bw"
end

Public Instance Methods

exec(*command, log: false, error_callback: nil) click to toggle source
# File lib/fastlane/plugin/bitwarden/helper/bitwarden_helper.rb, line 12
def exec(*command, log: false, error_callback: nil)
  ENV['BW_SESSION'] = Actions.lane_context[Actions::SharedValues::BW_SESSION]
  command.insert(0, @cli_path)
  res = Fastlane::Actions::sh(*command, log: log, error_callback: error_callback)
  ENV.delete('BW_SESSION')
  res
end