class Fastlane::Actions::BitwardenUnlockVaultAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_unlock_vault.rb, line 26 def self.available_options [ FastlaneCore::ConfigItem.new(key: :cli_path, env_name: "BW_CLI_PATH", optional: true, description: "Override path to the Bitwarden CLI"), FastlaneCore::ConfigItem.new(key: :password, env_name: "BW_PASSWORD", description: "Master Password to use when signing in to Bitwarden", verify_block: proc do |value| UI.user_error!("No Password provided to the Bitwarden Login Action `email: '<...email...>'`") unless value && !value.empty? end) ] end
description()
click to toggle source
@!group Documentation
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_unlock_vault.rb, line 18 def self.description "You can use this action to download an item's attachment from BitWarden." end
details()
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_unlock_vault.rb, line 22 def self.details "You can use this action to download an item's attachment from BitWarden." end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_unlock_vault.rb, line 55 def self.is_supported?(platform) true end
output()
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_unlock_vault.rb, line 41 def self.output [ ['BW_SESSION', 'The session token that Bitwarden returns'] ] end
return_value()
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_unlock_vault.rb, line 47 def self.return_value "The BW_SESSION token" end
run(params)
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_unlock_vault.rb, line 4 def self.run(params) @helper = Helper::BitwardenHelper.new(params[:cli_path]) password = params[:password] UI.message("Unlocking vault...") session = @helper.exec('unlock', password, '--raw') Actions.lane_context[SharedValues::BW_SESSION] = session end