Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding force option

  • Loading branch information...
commit 8c24eba59a73111e5f0a19d848db955fc3d7ddc9 1 parent fe7f3dd
Winton Welsh authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/execache.rb
3  lib/execache.rb
View
@@ -29,6 +29,7 @@ def initialize(yaml)
Timeout.timeout(60) do
request = Yajl::Parser.parse(request)
channel = request.delete('channel')
+ force = request.delete('channel')
commands = []
pending = false
@@ -49,7 +50,7 @@ def initialize(yaml)
if cache && cache == '[PENDING]'
pending = true
- elsif cache
+ elsif !force && !group['force'] && cache
group['result'] = Yajl::Parser.parse(cache)
else
pending = true
Please sign in to comment.
Something went wrong with that request. Please try again.