Sha256: bb110285141a1c34543481928915b7ed2668fbb2e8cda8a6759e7ea81d26e20a

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))

require 'rbatch/controller'

module RBatch
  @@ctrl = nil
  module_function
  def init
    @@ctrl = RBatch::Controller.new
  end
  def ctrl ; @@ctrl ; end
  def vars ; @@ctrl.vars ; end
  def config               ; @@ctrl.config ; end
  def common_config        ; @@ctrl.common_config ; end
  def cmd(cmd_str,opt=nil) ; @@ctrl.cmd(cmd_str,opt) ; end
end

# main
RBatch::init

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbatch-2.1.6 lib/rbatch.rb
rbatch-2.1.5 lib/rbatch.rb
rbatch-2.1.4 lib/rbatch.rb
rbatch-2.1.3 lib/rbatch.rb
rbatch-2.1.2 lib/rbatch.rb