Class: Kcu::DeployAction

Inherits:
Object
  • Object
show all
Extended by:
LightService::Organizer
Defined in:
lib/kcu/actions/deploy_action.rb

Class Method Summary collapse

Class Method Details

.call(repo_dir, git_branch, target_namespace = nil) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/kcu/actions/deploy_action.rb', line 6

def self.call(repo_dir, git_branch, target_namespace=nil)
  with(
    repo_dir: repo_dir,
    git_branch: git_branch,
    target_namespace: target_namespace,
  ).reduce(
    Deploys::GetConfig,
    Deploys::GetImageConfig,
    Deploys::GenImageName,
    Deploys::SetTargetNamespace,
    Deploys::GetTargetContainersConfig,
    Deploys::GetTargetContainers,
    Deploys::SetImage,
  )
end