class Kcu::DeployAction

Public Class Methods

call(repo_dir, git_branch, target_namespace=nil) click to toggle source
# 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