Skip to content

Commit

Permalink
applied rubocop code style to uploldz.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Aug 20, 2015
1 parent 940307b commit 33c4088
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/lolcommits/plugins/uploldz.rb
Expand Up @@ -18,14 +18,17 @@ def run_postcapture
else
debug "Posting capture to #{configuration['endpoint']}"
RestClient.post(configuration['endpoint'],
{:file => File.new(runner.main_image),
:message => runner.message,
:repo => runner.git_info.repo,
:author_name => runner.git_info.author_name,
:author_email => runner.git_info.author_email,
:sha => runner.sha,
:key => configuration['optional_key']
},{:Authorization=>configuration['optional_authorization']})
{
:file => File.new(runner.main_image),
:message => runner.message,
:repo => runner.git_info.repo,
:author_name => runner.git_info.author_name,
:author_email => runner.git_info.author_email,
:sha => runner.sha,
:key => configuration['optional_key']
},
:Authorization => configuration['optional_authorization']
)
end
rescue => e
log_error(e, "ERROR: RestClient POST FAILED #{e.class} - #{e.message}")
Expand Down

0 comments on commit 33c4088

Please sign in to comment.