Class: JobProvider

Inherits:
Object
  • Object
show all
Defined in:
app/providers/job_provider.rb

Instance Method Summary collapse

Instance Method Details

#job_template(git_url, build_command) ⇒ Object



8
9
10
11
12
13
# File 'app/providers/job_provider.rb', line 8

def job_template(git_url, build_command)
  template = File.read(File.join(File.dirname(File.expand_path(__FILE__)), "../views/jobs/job_template.xml.erb"))
  template = Erubis::Eruby.new(template, :escape_html => false)
  #fail template.inspect
  template.result(:build_command => build_command, :git_url => git_url)
end

#valueObject



4
5
6
# File 'app/providers/job_provider.rb', line 4

def value
  self
end