module FFWD::Plugin::GoogleCloud
Constants
- CUSTOM_PREFIX
- DEFAULT_API_URL
- DEFAULT_BUFFER_LIMIT
- DEFAULT_DEBUG
- DEFAULT_FLUSH_INTERVAL
- DEFAULT_METADATA_URL
- DEFAULT_SCOPE
- VERSION
Public Class Methods
setup_output(config)
click to toggle source
# File lib/ffwd/plugin/google_cloud.rb, line 39 def self.setup_output config if not config[:project_id] raise "'project_id' is required" end if not config[:project] raise "'project' is required" end if not config[:client_id] raise "'client_id' is required" end config[:scope] ||= DEFAULT_SCOPE config[:metadata_url] ||= DEFAULT_METADATA_URL config[:api_url] ||= DEFAULT_API_URL config[:flush_interval] ||= DEFAULT_FLUSH_INTERVAL config[:buffer_limit] ||= DEFAULT_BUFFER_LIMIT # Fake all API interaction (output with log.debug) config[:debug] ||= DEFAULT_DEBUG hook = Hook.new(config) FFWD.flushing_output log, hook, config end