Sha256: 952464c98c4eab0b6fe903180a12f05f0a8f9122be41109f6651ee7fbab9b2c1

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 Bytes

Contents

# encoding: utf-8
module PasswordChanger
  module Cli
    class Show < Thor

      desc 'config', 'Show configuration'
      option :defaults, type: :boolean, desc: 'Show default configuration'
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
password_changer-0.0.4 lib/password_changer/cli/show.rb
password_changer-0.0.3 lib/password_changer/cli/show.rb