lib/runcible/resources/task_group.rb in runcible-2.0.1 vs lib/runcible/resources/task_group.rb in runcible-2.1.0
- old
+ new
@@ -30,8 +30,15 @@
["finished", "canceled", "skipped", "suspended", "error"].each do |state|
sum += summary_report[state] if summary_report[state]
end
sum == summary_report["total"]
end
+
+ # cancel a task group
+ # @param [String] id the id of the task
+ # @return [RestClient::Response]
+ def cancel(id)
+ call(:delete, path(id))
+ end
end
end
end