Sha256: 8669c7c7b7a37bb067b8952cc3749168556b7b097a6e2e5c23622dad0edabf9d
Contents?: true
Size: 727 Bytes
Versions: 1
Compression:
Stored size: 727 Bytes
Contents
class Project include API LIMIT=1000.to_s def self.get_all(server) data = server.request(:get, "rest/api/1.0/projects?limit=#{LIMIT}") data['values'].map {|p| new(server,p) } end attr_reader :name, :key def initialize(server,data) @bb = server @name = data['name'] @key = data['key'] end def repositories @repositories ||= Repository.get_all(@bb,key) end def move_all_repos_to_project(new_project) repositories.each do |r| r.move_repo_to_project(new_project) end end def set_hook_status(key,status,settings=nil) repositories.each do |r| r.set_hook_settings(key, settings) if status && settings r.set_hook_status(key, status) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api_deploy-0.1.0 | lib/bitbucket/project.rb |