Class: Dapp::Builder::Shell

Inherits:
Base
  • Object
show all
Defined in:
lib/dapp/builder/shell.rb

Overview

Shell

Instance Attribute Summary

Attributes inherited from Base

#application

Instance Method Summary collapse

Methods inherited from Base

#chef_cookbooks, #chef_cookbooks_checksum, #infra_install, #infra_install?, #infra_install_checksum, #infra_setup, #infra_setup?, #infra_setup_checksum, #initialize, #install, #install?, #install_checksum, #setup, #setup?, #setup_checksum

Constructor Details

This class inherits a constructor from Dapp::Builder::Base

Instance Method Details

#stage_commands(stage) ⇒ Object



21
22
23
# File 'lib/dapp/builder/shell.rb', line 21

def stage_commands(stage)
  application.config._shell.public_send("_#{stage}")
end

#stage_empty?(stage) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/dapp/builder/shell.rb', line 17

def stage_empty?(stage)
  stage_commands(stage).empty?
end