Top Level Namespace

Defined Under Namespace

Modules: Vizir

Instance Method Summary collapse

Instance Method Details

#apiuri(port) ⇒ Object



25
26
27
# File 'bin/vizir', line 25

def apiuri(port)
  return "https://localhost:#{port}/oargridapi"
end

#notify_via_growl(jobid, site_name, time) ⇒ Object



34
35
36
# File 'bin/vizir', line 34

def notify_via_growl(jobid, site_name, time)
  $growl.notify('Job ending soon', 'OAR job terminating soon', "Job #{jobid} in #{site_name} ending #{time}.", :sticky => true)
end

#setup_growlObject



29
30
31
32
# File 'bin/vizir', line 29

def setup_growl
  $growl = Growl::Notifier.sharedInstance
  $growl.register('Vizir', ['Job ending soon'])
end

#setup_ssh_tunnelObject



19
20
21
22
23
# File 'bin/vizir', line 19

def setup_ssh_tunnel
  gateway = Net::SSH::Gateway.new('access.grenoble.grid5000.fr', $login)
  port = gateway.open('api.grenoble.grid5000.fr', 443)
  return gateway, port
end