Sha256: 84eb08a721dfcce56e6887d2a711c456fe3d42981e360a57a1cd3967879aec85

Contents?: true

Size: 821 Bytes

Versions: 5

Compression:

Stored size: 821 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'

  # 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

5 entries across 5 versions & 1 rubygems

Version Path
firehose-1.2.13 lib/firehose.rb
firehose-1.2.12 lib/firehose.rb
firehose-1.2.11 lib/firehose.rb
firehose-1.2.10 lib/firehose.rb
firehose-1.2.9 lib/firehose.rb