Class: Beanstalk::API::Release
- Defined in:
- lib/beanstalkapp/release.rb
Class Method Summary collapse
- .find_all_for_environment(environment_id, repo_id, page = nil) ⇒ Object
- .find_all_for_repository(repo_id) ⇒ Object
- .find_for_repository(id, repo_id) ⇒ Object
Instance Method Summary collapse
Methods inherited from Base
Class Method Details
.find_all_for_environment(environment_id, repo_id, page = nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/beanstalkapp/release.rb', line 9 def self.find_all_for_environment(environment_id, repo_id, page=nil) params = { :repository_id => repo_id, :environment_id => environment_id } if page params[:page] = page end find :all, :params => params end |
.find_all_for_repository(repo_id) ⇒ Object
5 6 7 |
# File 'lib/beanstalkapp/release.rb', line 5 def self.find_all_for_repository(repo_id) raise "This method was removed. To lookup Releases use Release#find_all_for_environment method. Sorry." end |
.find_for_repository(id, repo_id) ⇒ Object
17 18 19 |
# File 'lib/beanstalkapp/release.rb', line 17 def self.find_for_repository(id, repo_id) find id, :params => { :repository_id => repo_id } end |
Instance Method Details
#retry ⇒ Object
21 22 23 |
# File 'lib/beanstalkapp/release.rb', line 21 def retry put(:retry, :id => id) end |