Class: RubyYacht::Hook::Behavior

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_yacht/dsl/hook.rb

Overview

This class is the base class for behaviors in hooks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject

This context in which the command is being generated.



180
181
182
# File 'lib/ruby_yacht/dsl/hook.rb', line 180

def context
  @context
end

Instance Method Details

#dockerfile_commandObject

The command that should be run in a Dockerfile for this behavior.



170
171
172
# File 'lib/ruby_yacht/dsl/hook.rb', line 170

def dockerfile_command
  ''
end

#shell_commandObject

The command that should be run in a shell script for this behavior.



175
176
177
# File 'lib/ruby_yacht/dsl/hook.rb', line 175

def shell_command
  ''
end