Skip to content

Commit

Permalink
lwrp: remove some functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Christensen committed Apr 3, 2012
1 parent d6e0b52 commit 13bfe7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion providers/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@ def action_run
jenkins_execute command do
cwd home
block { |stdout| new_resource.block.call(stdout) } if new_resource.block
only_if new_resource.only_if
end
end
3 changes: 1 addition & 2 deletions providers/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ def post_job(url)
res.error! unless res.kind_of?(Net::HTTPSuccess)
end

#could also use: jenkins_cli "create-job #{@new_resource.job_name} < #{@new_resource.config}"
def action_create
unless job_exists
post_job(new_job_url)
jenkins_cli "create-job #{@new_resource.job_name} < #{@new_resource.config}"
end
end

Expand Down

0 comments on commit 13bfe7e

Please sign in to comment.