Class: PasswordChanger::Cli::Show

Inherits:
Thor
  • Object
show all
Defined in:
lib/password_changer/cli/show.rb

Instance Method Summary collapse

Instance Method Details

#configObject



8
9
10
11
12
13
14
15
16
# File 'lib/password_changer/cli/show.rb', line 8

def config
  if options[:defaults]
    capture :stderr do
      puts PasswordChanger::ApplicationConfig.new(file: nil).to_s
    end
  else
    puts PasswordChanger.config.to_s
  end
end