module RemoteRuby
Namespace module for other RemoteRuby
classes. Also contains methods, which are included in the global scope
Constants
- VERSION
Public Class Methods
lib_path(*params)
click to toggle source
# File lib/remote_ruby.rb, line 18 def self.lib_path(*params) File.join(root, 'lib', *params) end
root(*params)
click to toggle source
# File lib/remote_ruby.rb, line 13 def self.root(*params) root_dir = ::Gem::Specification.find_by_name('remote_ruby').gem_dir File.join(root_dir, *params) end
Public Instance Methods
remotely(args = {}, &block)
click to toggle source
# File lib/remote_ruby.rb, line 7 def remotely(args = {}, &block) locals = args.delete(:locals) execution_context = ::RemoteRuby::ExecutionContext.new(**args) execution_context.execute(locals, &block) end