Sha256: 89240644406f3effc0d1b680db8ee255141437305bc43e7cf0901843cb2540d7

Contents?: true

Size: 302 Bytes

Versions: 8

Compression:

Stored size: 302 Bytes

Contents

module Climatic
  module Logger

    module Wrapper
      def puts_and_logs(*args, logs_as: :info, check_verbose: true)
        if check_verbose
          puts *args if Climatic.config[:verbose]
        else
          puts *args
        end
        self.send logs_as, *args
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
climatic-0.2.38 lib/climatic/logger/wrapper.rb
climatic-0.2.37 lib/climatic/logger/wrapper.rb
climatic-0.2.36 lib/climatic/logger/wrapper.rb
climatic-0.2.35 lib/climatic/logger/wrapper.rb
climatic-0.2.34 lib/climatic/logger/wrapper.rb
climatic-0.2.32 lib/climatic/logger/wrapper.rb
climatic-0.2.31 lib/climatic/logger/wrapper.rb
climatic-0.2.30 lib/climatic/logger/wrapper.rb