Sha256: 206a057f42083f3f31057a73f4dc8dbbfe5072a986e66bd877919cf272a9cc63
Contents?: true
Size: 733 Bytes
Versions: 5
Compression:
Stored size: 733 Bytes
Contents
# frozen_string_literal: true require 'pp' require 'chamber/commands/base' module Chamber module Commands class Show < Chamber::Commands::Base def initialize(options = {}) super self.as_env = options[:as_env] self.only_sensitive = options[:only_sensitive] end def call if as_env settings.to_s(pair_separator: "\n") else PP. pp(settings.to_hash, StringIO.new, 60). string. chomp end end protected attr_accessor :as_env, :only_sensitive def settings @settings ||= if only_sensitive chamber.settings.securable else chamber.settings end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems