Sha256: ea336a8241272fa898ba91be444e1af71b89033fb4ce1f434a0c72965383a4d1
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
module AmazonAuth module CommonExtension def log(message) return unless (@options[:debug] || @options[:verbose]) puts "[#{Time.current.strftime('%Y-%m-%d %H:%M:%S')}] #{message}" + (@options[:debug] ? " -- #{session.current_url}" : '') end def debug(message) return unless @options[:debug] log(message) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amazon_auth-0.3.1 | lib/amazon_auth/extensions/common_extension.rb |