Class: Vx::ServiceConnector::GitlabV6

Inherits:
Struct
  • Object
show all
Includes:
Base
Defined in:
lib/vx/service_connector/gitlab_v6.rb,
lib/vx/service_connector/gitlab_v6/files.rb,
lib/vx/service_connector/gitlab_v6/hooks.rb,
lib/vx/service_connector/gitlab_v6/repos.rb,
lib/vx/service_connector/gitlab_v6/commits.rb,
lib/vx/service_connector/gitlab_v6/notices.rb,
lib/vx/service_connector/gitlab_v6/payload.rb,
lib/vx/service_connector/gitlab_v6/session.rb,
lib/vx/service_connector/gitlab_v6/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

#endpointObject

Returns the value of attribute endpoint

Returns:

  • (Object)

    the current value of endpoint



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

def endpoint
  @endpoint
end

#private_tokenObject

Returns the value of attribute private_token

Returns:

  • (Object)

    the current value of private_token



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

def private_token
  @private_token
end

Instance Method Details

#commits(repo) ⇒ Object



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

def commits(repo)
  self.class::Commits.new(session, repo)
end

#deploy_keys(repo) ⇒ Object



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

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

#files(repo) ⇒ Object



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

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

#hooks(repo) ⇒ Object



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

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

#notices(repo) ⇒ Object



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

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

#organizationsObject



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

def organizations
  []
end

#payload(repo, params) ⇒ Object



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

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

#reposObject



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

def repos
  @repos ||= self.class::Repos.new(session).to_a
end