Sha256: f4f08f9608f036ca48f1dd50c5461404665930e7f8873930f640c23b8f53a013

Contents?: true

Size: 236 Bytes

Versions: 7

Compression:

Stored size: 236 Bytes

Contents

module LetsencryptWebfaction
  class LoggerOutput
    attr_accessor :quiet
    def initialize(quiet: false)
      @quiet = quiet
    end

    def puts(msg)
      Kernel.puts msg unless @quiet
    end
  end

  Out = LoggerOutput.new
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
letsencrypt_webfaction-4.0.0 lib/letsencrypt_webfaction/logger_output.rb
letsencrypt_webfaction-3.2.0 lib/letsencrypt_webfaction/logger_output.rb
letsencrypt_webfaction-3.1.2 lib/letsencrypt_webfaction/logger_output.rb
letsencrypt_webfaction-3.1.1 lib/letsencrypt_webfaction/logger_output.rb
letsencrypt_webfaction-3.1.0 lib/letsencrypt_webfaction/logger_output.rb
letsencrypt_webfaction-3.0.1 lib/letsencrypt_webfaction/logger_output.rb
letsencrypt_webfaction-3.0.0 lib/letsencrypt_webfaction/logger_output.rb