Method: Logical::Naf::Job#runner
- Defined in:
- app/models/logical/naf/job.rb
#runner ⇒ Object
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
# File 'app/models/logical/naf/job.rb', line 341 def runner if @job.machine_runner_invocation.present? machine = @job.machine_runner_invocation.machine_runner.machine if machine.present? if machine.server_name.present? machine.server_name.to_s else if Rails.env == 'development' "localhost:#{Rails::Server.new.options[:Port]}" else machine.server_address end end end else '' end end |