Sha256: 609dd72d2ac6d4a6fceaa813ed67ff3087f30a95d9ca26aa79664208be4be221

Contents?: true

Size: 381 Bytes

Versions: 6

Compression:

Stored size: 381 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 ? " -- #{session.current_url}" : '')
    end

    def debug(message)
      return unless @options[:debug]
      log(message)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
amazon_auth-0.4.5 lib/amazon_auth/extensions/common_extension.rb
amazon_auth-0.4.4 lib/amazon_auth/extensions/common_extension.rb
amazon_auth-0.4.3 lib/amazon_auth/extensions/common_extension.rb
amazon_auth-0.4.2 lib/amazon_auth/extensions/common_extension.rb
amazon_auth-0.4.1 lib/amazon_auth/extensions/common_extension.rb
amazon_auth-0.4.0 lib/amazon_auth/extensions/common_extension.rb