Sha256: b628c125d1eb04b87f38478b44e8dc114b4d2366a12ab7a79b0dd07e6afcbb11

Contents?: true

Size: 881 Bytes

Versions: 9

Compression:

Stored size: 881 Bytes

Contents

ENV['RACK_ENV'] ||= 'development' # TODO - Lets not rock out envs like its 1999.

require 'uri'
require 'firehose/version'
require 'firehose/logging'

# TODO - Figure if we need to have an if/else for Rails::Engine loading and Firehose::Assets::Sprockets.auto_detect
require 'firehose/rails' if defined?(::Rails::Engine)

module Firehose
  autoload :Server,       'firehose/server'
  autoload :Client,       'firehose/client'
  autoload :Assets,       'firehose/assets'
  autoload :Rack,         'firehose/rack'
  autoload :CLI,          'firehose/cli'
  autoload :SwfPolicyRequest, 'firehose/swf_policy_request'

  # Default URI for the Firehose server. Consider the port "well-known" and bindable from other apps.
  URI = URI.parse("//0.0.0.0:7474").freeze
end

# Detect if Sprockets is loaded. If it is, lets configure Firehose to use it!
Firehose::Assets::Sprockets.auto_detect

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
firehose-1.2.8 lib/firehose.rb
firehose-1.2.7 lib/firehose.rb
firehose-1.2.6 lib/firehose.rb
firehose-1.2.5 lib/firehose.rb
firehose-1.2.4 lib/firehose.rb
firehose-1.2.3 lib/firehose.rb
firehose-1.2.2 lib/firehose.rb
firehose-1.2.1 lib/firehose.rb
firehose-1.2.0 lib/firehose.rb