module Tengine::Resource

Public Class Methods

notify(ctx, msg) click to toggle source

定数を参照した際にrequireしないように、明示的にrequireすることにしてあります。 データ操作のためのコマンドラインインタフェース autoload :CLI , 'tengine/resource/cli'

# File lib/tengine/resource.rb, line 23
def self.notify ctx, msg
  # called from tengine_core/lib/tengine/core/plugins.rb
  case msg when :after___evalate__
    Dir.glob(File.expand_path("../resource/drivers/*.rb", __FILE__)) do |f|
      ctx.instance_eval File.read(f), f # load additional drivers
    end
  end
end