Sha256: fe0dbe566c921d5a0a4a1035d4777bb4212ba027119e63e60cf36cba27c4cbbd

Contents?: true

Size: 491 Bytes

Versions: 3

Compression:

Stored size: 491 Bytes

Contents

module Cogy
  class Engine < ::Rails::Engine
    isolate_namespace Cogy

    config.after_initialize do
      if Cogy.bundle_version.nil?
        raise "You must set the :bundle_version setting"
      end

      if Cogy.executable_path.nil?
        raise "You must set the :executable_path setting"
      end

      Cogy.command_load_paths.each do |path|
        files = Dir[Rails.root.join(path,"*.rb")]
        files.each { |f| Cogy.module_eval(File.read(f)) }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cogy-0.0.3 lib/cogy/engine.rb
cogy-0.0.2 lib/cogy/engine.rb
cogy-0.0.1 lib/cogy/engine.rb