AT&T Interactive R&D

 
 

Exec

Ensure a command is run on the instances

Usage

   1  has_exec(:name => '...') do
   2  	# More options. 
   3  	# This block is optional
   4  end

Options

name
The name of your exec. This is optional, but nice for debugging purposes
cwd
Current working directory to execute the command (optional)
command
This describes the command to run
path
The path to run the command with (optional)

Examples

   1  has_exec(:name => 'start messenger', :command => 'server-start-node', :requires => get_gempackage('poolparty-latest', :onlyif => 'ps aux | grep beam | grep master')