Class: RubyYacht::Hook::Behavior
- Inherits:
-
Object
- Object
- RubyYacht::Hook::Behavior
- Defined in:
- lib/ruby_yacht/dsl/hook.rb
Overview
This class is the base class for behaviors in hooks.
Direct Known Subclasses
CommandBehavior, CopyFileBehavior, EnvironmentVariableBehavior
Instance Attribute Summary collapse
-
#context ⇒ Object
This context in which the command is being generated.
Instance Method Summary collapse
-
#dockerfile_command ⇒ Object
The command that should be run in a Dockerfile for this behavior.
-
#shell_command ⇒ Object
The command that should be run in a shell script for this behavior.
Instance Attribute Details
#context ⇒ Object
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_command ⇒ Object
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_command ⇒ Object
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 |