class Fastlane::Actions::BitwardenGetObjectAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb, line 42 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: :object_type, description: "Type of the object to get (collection, item, etc.)", verify_block: proc do |value| UI.user_error!("No object type provided to the Bitwarden Get Object Action`") unless value && !value.empty? end), FastlaneCore::ConfigItem.new(key: :args, description: "Other arguments (hash)", type: Hash, optional: true), FastlaneCore::ConfigItem.new(key: :str_args, description: "Other arguments (string)", optional: true) ] end
description()
click to toggle source
@!group Documentation
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb, line 34 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_get_object.rb, line 38 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_get_object.rb, line 76 def self.is_supported?(platform) true end
output()
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb, line 63 def self.output [ ] end
return_value()
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb, line 68 def self.return_value "The resulting object" end
run(params)
click to toggle source
# File lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb, line 10 def self.run(params) @helper = Helper::BitwardenHelper.new(params[:cli_path]) object_type = params[:object_type] other_args = params[:args] || {} str_args = params[:str_args] || "" args = ['get', object_type] args.push(str_args) other_args.each do |key, value| args.push(key.to_s) args.push(value) end args.push('--raw') @helper.exec(*args) end