Class: Afterlife::Deploy::KubernetesDeployment

Inherits:
Deployment
  • Object
show all
Defined in:
lib/afterlife/deploy/kubernetes_deployment.rb

Defined Under Namespace

Classes: AwsAuth

Instance Attribute Summary

Attributes inherited from Deployment

#options

Instance Method Summary collapse

Methods inherited from Deployment

#initial_message, #initialize, #output, #repo_command

Constructor Details

This class inherits a constructor from Afterlife::Deploy::Deployment

Instance Method Details

#confirmation_messageObject



19
20
21
# File 'lib/afterlife/deploy/kubernetes_deployment.rb', line 19

def confirmation_message
  'You are about to deploy the current directory'
end

#runObject



15
16
17
# File 'lib/afterlife/deploy/kubernetes_deployment.rb', line 15

def run
  Exec.run(commands)
end

#setupObject



6
7
8
9
10
11
12
13
# File 'lib/afterlife/deploy/kubernetes_deployment.rb', line 6

def setup
  Afterlife.current_repo.env.set('PLATFORM' => 'linux/amd64') if deploy_stage?

  Afterlife.current_repo.env.set!(
    'REGISTRY' => registry,
    'TAG' => repo.current_revision,
  )
end