Class: Moku::Command::Deploy

Inherits:
Moku::Command show all
Defined in:
lib/moku/command/deploy.rb

Overview

Create and deploy a release

Instance Method Summary collapse

Constructor Details

#initialize(instance_name:, user:, reference: nil) ⇒ Deploy

Returns a new instance of Deploy.


11
12
13
14
# File 'lib/moku/command/deploy.rb', line 11

def initialize(instance_name:, user:, reference: nil)
  super(instance_name: instance_name, user: user)
  @reference = reference
end

Instance Method Details

#actionObject


16
17
18
# File 'lib/moku/command/deploy.rb', line 16

def action
  :deploy
end

#referenceObject


20
21
22
# File 'lib/moku/command/deploy.rb', line 20

def reference
  @reference || instance.default_branch
end