Class: RSC

Inherits:
Object
  • Object
show all
Defined in:
lib/rsc.rb

Defined Under Namespace

Classes: Package

Instance Method Summary collapse

Constructor Details

#initialize(drb_hostname = 'rse', parent_url) ⇒ RSC



43
44
45
46
47
48
# File 'lib/rsc.rb', line 43

def initialize(drb_hostname='rse', parent_url)
  
  @parent_url = parent_url
  DRb.start_service
  @obj = DRbObject.new(nil, "druby://#{drb_hostname}:61000")
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args) ⇒ Object (private)



56
57
58
# File 'lib/rsc.rb', line 56

def method_missing(method_name, *args)
  Package.new @obj, @parent_url, method_name.to_s
end

Instance Method Details

#run_job(package, job, params = {}, *qargs, package_path: nil) ⇒ Object



50
51
52
# File 'lib/rsc.rb', line 50

def run_job(package, job, params={}, *qargs, package_path: nil)
  @obj.run_job(package, job, params, qargs, package_path)
end