Method: OodCore::Job::Adapters::LinuxHost::Launcher#initialize
- Defined in:
- lib/ood_core/job/adapters/linux_host/launcher.rb
#initialize(contain: false, debug: false, site_timeout: nil, singularity_bin:, singularity_bindpath: '/etc,/media,/mnt,/opt,/run,/srv,/usr,/var,/users', singularity_image:, ssh_hosts:, strict_host_checking: false, submit_host:, tmux_bin:, **_) ⇒ Launcher
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Launcher.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/ood_core/job/adapters/linux_host/launcher.rb', line 30 def initialize( contain: false, debug: false, site_timeout: nil, singularity_bin:, singularity_bindpath: '/etc,/media,/mnt,/opt,/run,/srv,/usr,/var,/users', singularity_image:, ssh_hosts:, strict_host_checking: false, submit_host:, tmux_bin:, **_ ) @contain = !! contain @debug = !! debug @site_timeout = site_timeout.to_i @session_name_label = 'launched-by-ondemand' @singularity_bin = Pathname.new(singularity_bin) @site_singularity_bindpath = singularity_bindpath.to_s @default_singularity_image = Pathname.new(singularity_image) @ssh_hosts = ssh_hosts @strict_host_checking = strict_host_checking @submit_host = submit_host @tmux_bin = tmux_bin @username = Etc.getlogin end |