Class: Packerman::Dsl::Provisioners::Shell

Inherits:
Packerman::Dsl::Provisioners show all
Includes:
Node
Defined in:
lib/packerman/dsl/provisioners/shell.rb

Class Method Summary collapse

Methods included from Node

#initialize, #method_missing, #to_hash, #type

Methods inherited from Packerman::Dsl

register, register_to_repo, to_subclass

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Packerman::Dsl::Node

Class Method Details

.optional_keysObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/packerman/dsl/provisioners/shell.rb', line 14

def optional_keys
  [
    :binary,
    :environment_vars,
    :execute_command,
    :inline_shebang,
    :remote_path,
    :start_retry_timeout
  ]
end

.require_keysObject



5
6
7
8
9
10
11
12
# File 'lib/packerman/dsl/provisioners/shell.rb', line 5

def require_keys
  [
    # Exactly one of the following is required
    :inline,
    :script,
    :scripts
  ]
end