Sha256: 891fb7c6d8e734043ff00475bf70dca797a8be2cbf6ee86a9f0e2d20afa50d65

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 Bytes

Contents

require 'active_support/core_ext'
require 'ipaddress'

# rails engine setup
require File.join(File.dirname(__FILE__), "firewool/railtie.rb")

module Firewool
  
  def self.included(base)
    base.extend(Firewool::Hook)
  end
  
  class Config
    attr_reader :yaml_config
    
    def initialize
      @yaml_config = YAML.load_file("#{Rails.root.to_s}/config/firewool.yml")
    end
  end

  autoload :Hook, File.join(File.dirname(__FILE__), "firewool/hook")
  autoload :InstanceMethods, File.join(File.dirname(__FILE__), "firewool/instance_methods")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
firewool-0.1.1 lib/firewool.rb
firewool-0.1.0 lib/firewool.rb