Module: Kontena::Cli::Config::TokenSerializer
Instance Method Summary collapse
-
#to_h ⇒ Hash
Modified to_h to handle token data serialization.
Instance Method Details
#to_h ⇒ Hash
Modified to_h to handle token data serialization
534 535 536 537 538 539 540 541 542 |
# File 'lib/kontena/cli/config.rb', line 534 def to_h token = delete_field(:token) if respond_to?(:token) result = super if token self.token = token result.merge!(token.to_h) end result end |