Class: Moku::Pipeline::Init

Inherits:
Moku::Pipeline show all
Defined in:
lib/moku/pipeline/init.rb

Overview

Execute an arbitrary command

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Moku::Pipeline

for

Class Method Details

.handles?(command) ⇒ Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/moku/pipeline/init.rb', line 17

def self.handles?(command)
  command.action == :init
end

Instance Method Details

#callObject


21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/moku/pipeline/init.rb', line 21

def call
  step :create_tmpdir
  step :precheck
  step :write_deploy
  step :write_dev
  step :write_infrastructure
  step :push
  step :install_permissions
  step :install_instance
ensure
  step :cleanup
end