Class: Fastlane::Actions::BitwardenGetObjectAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::BitwardenGetObjectAction
- Defined in:
- lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .output ⇒ Object
- .return_value ⇒ Object
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
72 73 74 |
# File 'lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb', line 72 def self. ["[email protected]"] end |
.available_options ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb', line 42 def self. [ 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 ⇒ Object
34 35 36 |
# 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 ⇒ Object
38 39 40 |
# 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) ⇒ Boolean
76 77 78 |
# File 'lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb', line 76 def self.is_supported?(platform) true end |
.output ⇒ Object
63 64 65 66 |
# File 'lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb', line 63 def self.output [ ] end |
.return_value ⇒ Object
68 69 70 |
# File 'lib/fastlane/plugin/bitwarden/actions/bitwarden_get_object.rb', line 68 def self.return_value "The resulting object" end |
.run(params) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# 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 |