Skip to content

Commit

Permalink
Issue #14 [BuildQueue] - added few couple more methods
Browse files Browse the repository at this point in the history
  • Loading branch information
arangamani committed Jan 26, 2013
1 parent e837d91 commit ccdac8f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/jenkins_api_client/build_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,21 @@ def get_eta(task_name)
end

def get_id(task_name)

id = nil
details = get_details(task_name)
unless details.empty?
id = details["id"]
end
id
end

def get_params(task_name)

params = nil
details = get_details(task_name)
unless details.empty?
params = details["params"]
end
params
end

def is_buildable?(task_name)
Expand Down

0 comments on commit ccdac8f

Please sign in to comment.