Class: Gitabu::Api::V3::Deployments

Inherits:
Object
  • Object
show all
Defined in:
lib/gitabu/api/v3/deployments.rb

Overview

Deployments endpoints.

Class Method Summary collapse

Class Method Details

.create_a_deployment(owner: nil, repo: nil, ref: nil, task: nil, auto_merge: nil, required_contexts: nil, payload: nil, environment: nil, description: nil, transient_environment: nil, production_environment: nil, options: nil) ⇒ Object



42
43
44
# File 'lib/gitabu/api/v3/deployments.rb', line 42

def self.create_a_deployment(owner: nil, repo: nil, ref: nil, task: nil, auto_merge: nil, required_contexts: nil, payload: nil, environment: nil, description: nil, transient_environment: nil, production_environment: nil, options: nil)
  new.create_a_deployment(owner, repo, ref, task, auto_merge, required_contexts, payload, environment, description, transient_environment, production_environment, options)
end

.create_a_deployment_status(owner: nil, repo: nil, deployment_id: nil, state: nil, target_url: nil, log_url: nil, description: nil, environment: nil, environment_url: nil, auto_inactive: nil, options: nil) ⇒ Object



74
75
76
# File 'lib/gitabu/api/v3/deployments.rb', line 74

def self.create_a_deployment_status(owner: nil, repo: nil, deployment_id: nil, state: nil, target_url: nil, log_url: nil, description: nil, environment: nil, environment_url: nil, auto_inactive: nil, options: nil)
  new.create_a_deployment_status(owner, repo, deployment_id, state, target_url, log_url, description, environment, environment_url, auto_inactive, options)
end

.create_or_update_an_environment(owner: nil, repo: nil, environment_name: nil, wait_timer: nil, reviewers: nil, deployment_branch_policy: nil, options: nil) ⇒ Object



62
63
64
# File 'lib/gitabu/api/v3/deployments.rb', line 62

def self.create_or_update_an_environment(owner: nil, repo: nil, environment_name: nil, wait_timer: nil, reviewers: nil, deployment_branch_policy: nil, options: nil)
  new.create_or_update_an_environment(owner, repo, environment_name, wait_timer, reviewers, deployment_branch_policy, options)
end

.delete_a_deployment(owner: nil, repo: nil, deployment_id: nil, options: nil) ⇒ Object



50
51
52
# File 'lib/gitabu/api/v3/deployments.rb', line 50

def self.delete_a_deployment(owner: nil, repo: nil, deployment_id: nil, options: nil)
  new.delete_a_deployment(owner, repo, deployment_id, options)
end

.delete_an_environment(owner: nil, repo: nil, environment_name: nil, options: nil) ⇒ Object



66
67
68
# File 'lib/gitabu/api/v3/deployments.rb', line 66

def self.delete_an_environment(owner: nil, repo: nil, environment_name: nil, options: nil)
  new.delete_an_environment(owner, repo, environment_name, options)
end

.get_a_deployment(owner: nil, repo: nil, deployment_id: nil, options: nil) ⇒ Object



46
47
48
# File 'lib/gitabu/api/v3/deployments.rb', line 46

def self.get_a_deployment(owner: nil, repo: nil, deployment_id: nil, options: nil)
  new.get_a_deployment(owner, repo, deployment_id, options)
end

.get_a_deployment_status(owner: nil, repo: nil, deployment_id: nil, status_id: nil, options: nil) ⇒ Object



78
79
80
# File 'lib/gitabu/api/v3/deployments.rb', line 78

def self.get_a_deployment_status(owner: nil, repo: nil, deployment_id: nil, status_id: nil, options: nil)
  new.get_a_deployment_status(owner, repo, deployment_id, status_id, options)
end

.get_all_environments(owner: nil, repo: nil, options: nil) ⇒ Object



54
55
56
# File 'lib/gitabu/api/v3/deployments.rb', line 54

def self.get_all_environments(owner: nil, repo: nil, options: nil)
  new.get_all_environments(owner, repo, options)
end

.get_an_environment(owner: nil, repo: nil, environment_name: nil, options: nil) ⇒ Object



58
59
60
# File 'lib/gitabu/api/v3/deployments.rb', line 58

def self.get_an_environment(owner: nil, repo: nil, environment_name: nil, options: nil)
  new.get_an_environment(owner, repo, environment_name, options)
end

.list_deployment_statuses(owner: nil, repo: nil, deployment_id: nil, options: nil) ⇒ Object



70
71
72
# File 'lib/gitabu/api/v3/deployments.rb', line 70

def self.list_deployment_statuses(owner: nil, repo: nil, deployment_id: nil, options: nil)
  new.list_deployment_statuses(owner, repo, deployment_id, options)
end

.list_deployments(owner: nil, repo: nil, options: nil) ⇒ Object



38
39
40
# File 'lib/gitabu/api/v3/deployments.rb', line 38

def self.list_deployments(owner: nil, repo: nil, options: nil)
  new.list_deployments(owner, repo, options)
end