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

#before_application_should_be_built_check, #before_install, #before_install?, #before_install_checksum, #before_setup, #before_setup?, #before_setup_checksum, #build_artifact, #build_artifact?, #build_artifact_checksum, #chef_cookbooks, #chef_cookbooks_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



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

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

#stage_empty?(stage) ⇒ Boolean

Returns:

  • (Boolean)


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

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