Class: Chamber::Commands::Show
- Defined in:
- lib/chamber/commands/show.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ Show
constructor
A new instance of Show.
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ Show
Returns a new instance of Show.
8 9 10 11 12 13 |
# File 'lib/chamber/commands/show.rb', line 8 def initialize( = {}) super self.as_env = [:as_env] self.only_sensitive = [:only_sensitive] end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/chamber/commands/show.rb', line 15 def call if as_env settings.to_s(pair_separator: "\n") else PP. pp(settings.to_hash, StringIO.new, 60). string. chomp end end |