lib/rbbt/rest/client.rb in rbbt-rest-1.2.12 vs lib/rbbt/rest/client.rb in rbbt-rest-1.2.13

- old
+ new

@@ -78,9 +78,13 @@ info = WorkflowRESTClient.get_json(File.join(url, 'info')) info = WorkflowRESTClient.fix_hash(info) info[:status] = info[:status].to_sym if String === info[:status] info end + + def done? + status.to_s == 'done' + end def fork @name = WorkflowRESTClient.post_jobname(File.join(base_url, task.to_s), inputs.merge(:jobname => @name, :_cache_type => :asynchronous)) @url = File.join(base_url, task.to_s, @name) self