Sha256: 9a367581d889f7542a50052747ccd012f31e41bb81620cb9cb25ba77ec22c86b
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
module Kontena::Cli::Vault class ListCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions def execute require_api_url token = require_token result = client(token).get("grids/#{current_grid}/secrets") column_width_paddings = '%-54s %-25.25s' puts column_width_paddings % ['NAME', 'CREATED AT'] result['secrets'].each do |secret| puts column_width_paddings % [secret['name'], secret['created_at']] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kontena-cli-0.12.3 | lib/kontena/cli/vault/list_command.rb |
kontena-cli-0.12.2 | lib/kontena/cli/vault/list_command.rb |
kontena-cli-0.12.1 | lib/kontena/cli/vault/list_command.rb |