Class: Beanstalk::API::ReleaseServer

Inherits:
Base
  • Object
show all
Defined in:
lib/beanstalkapp/release_server.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

add_prefix, setup

Class Method Details

.find_all_for_environment(environment_id, repository_id) ⇒ Object



13
14
15
# File 'lib/beanstalkapp/release_server.rb', line 13

def self.find_all_for_environment(environment_id, repository_id)
  find :all, :params => { :repository_id => repository_id, :environment_id => environment_id }
end

.find_all_for_repository(repo_id) ⇒ Object



5
6
7
# File 'lib/beanstalkapp/release_server.rb', line 5

def self.find_all_for_repository(repo_id)
  raise "This method was removed. To lookup ReleaseServers use ReleaseServer#find_all_for_environment method. Sorry."
end

.find_for_repository(id, repository_id) ⇒ Object



9
10
11
# File 'lib/beanstalkapp/release_server.rb', line 9

def self.find_for_repository(id, repository_id)
  find id, :params => { :repository_id => repository_id }
end

Instance Method Details

#toggle_state!Object



17
18
19
# File 'lib/beanstalkapp/release_server.rb', line 17

def toggle_state!
  raise "ReleaseServer#toggle_state! method was removed due to changes in how Beanstalk Deployments work. Sorry"
end