Class: Janky::JobCreator::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/janky/job_creator.rb

Instance Method Summary collapse

Instance Method Details

#exists?(server_url, name) ⇒ Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/janky/job_creator.rb', line 64

def exists?(server_url, name)
  false
end

#run(server_url, name, config) ⇒ Object



56
57
58
59
60
61
62
# File 'lib/janky/job_creator.rb', line 56

def run(server_url, name, config)
  name   || raise(Error, "no name")
  config || raise(Error, "no config")
  (URI === server_url) || raise(Error, "server_url is not a URI")

  true
end