Class: UffizziCore::Api::Cli::V1::Secret::BulkAssignForm
- Inherits:
-
Object
- Object
- UffizziCore::Api::Cli::V1::Secret::BulkAssignForm
- Defined in:
- app/forms/uffizzi_core/api/cli/v1/secret/bulk_assign_form.rb
Constant Summary collapse
- MAX_SECRET_KEY_LENGTH =
256
Instance Method Summary collapse
Methods included from UffizziCore::ApplicationFormWithoutActiveRecord
Instance Method Details
#assign_secrets(new_secrets) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/forms/uffizzi_core/api/cli/v1/secret/bulk_assign_form.rb', line 11 def assign_secrets(new_secrets) return if new_secrets.blank? new_secrets.each do |new_secret| secret = UffizziCore::Secret.new(name: new_secret['name'], value: new_secret['value']) secrets.append(secret) end end |