Method: OodCore::Job::Adapters::Slurm::Batch#initialize
- Defined in:
- lib/ood_core/job/adapters/slurm.rb
#initialize(cluster: nil, bin: nil, conf: nil, bin_overrides: {}, submit_host: "", strict_host_checking: true, id: 'unknown') ⇒ Batch
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 Batch.
111 112 113 114 115 116 117 118 119 |
# File 'lib/ood_core/job/adapters/slurm.rb', line 111 def initialize(cluster: nil, bin: nil, conf: nil, bin_overrides: {}, submit_host: "", strict_host_checking: true, id: 'unknown') @cluster = cluster && cluster.to_s @conf = conf && Pathname.new(conf.to_s) @bin = Pathname.new(bin.to_s) @bin_overrides = bin_overrides @submit_host = submit_host.to_s @strict_host_checking = strict_host_checking @id = id.to_s end |