Class: Vx::ServiceConnector::Bitbucket

Inherits:
Struct
  • Object
show all
Includes:
Base
Defined in:
lib/vx/service_connector/bitbucket.rb,
lib/vx/service_connector/bitbucket/files.rb,
lib/vx/service_connector/bitbucket/hooks.rb,
lib/vx/service_connector/bitbucket/repos.rb,
lib/vx/service_connector/bitbucket/commits.rb,
lib/vx/service_connector/bitbucket/notices.rb,
lib/vx/service_connector/bitbucket/payload.rb,
lib/vx/service_connector/bitbucket/session.rb,
lib/vx/service_connector/bitbucket/deploy_keys.rb

Defined Under Namespace

Classes: Commits, DeployKeys, Files, Hooks, Notices, Payload, Repos, Session

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#session

Instance Attribute Details

#loginObject

Returns the value of attribute login

Returns:

  • (Object)

    the current value of login



3
4
5
# File 'lib/vx/service_connector/bitbucket.rb', line 3

def 
  @login
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



3
4
5
# File 'lib/vx/service_connector/bitbucket.rb', line 3

def options
  @options
end

Instance Method Details

#commits(repo, options = {}) ⇒ Object



35
36
37
# File 'lib/vx/service_connector/bitbucket.rb', line 35

def commits(repo, options = {})
  Bitbucket::Commits.new(session, repo)
end

#deploy_keys(repo) ⇒ Object



19
20
21
# File 'lib/vx/service_connector/bitbucket.rb', line 19

def deploy_keys(repo)
  Bitbucket::DeployKeys.new(session, repo)
end

#files(repo) ⇒ Object



27
28
29
# File 'lib/vx/service_connector/bitbucket.rb', line 27

def files(repo)
  Bitbucket::Files.new(session, repo)
end

#hooks(repo) ⇒ Object



15
16
17
# File 'lib/vx/service_connector/bitbucket.rb', line 15

def hooks(repo)
  Bitbucket::Hooks.new(session, repo)
end

#notices(repo) ⇒ Object



23
24
25
# File 'lib/vx/service_connector/bitbucket.rb', line 23

def notices(repo)
  Bitbucket::Notices.new(session, repo)
end

#organizationsObject



11
12
13
# File 'lib/vx/service_connector/bitbucket.rb', line 11

def organizations
  []
end

#payload(repo, params) ⇒ Object



31
32
33
# File 'lib/vx/service_connector/bitbucket.rb', line 31

def payload(repo, params)
  Bitbucket::Payload.new(session, params).build
end

#reposObject



7
8
9
# File 'lib/vx/service_connector/bitbucket.rb', line 7

def repos
  Bitbucket::Repos.new(session).to_a
end