class RubyYacht::Hook::CommandBehavior
This class provides a behavior for running a command in the image.
Public Class Methods
new(command)
click to toggle source
This initializer creates the behavior.
### Parameters
-
**command: String** The command to run.
# File lib/ruby_yacht/dsl/hook.rb, line 190 def initialize(command) @command = command end
Public Instance Methods
dockerfile_command()
click to toggle source
The command that should be run in a Dockerfile for this behavior.
# File lib/ruby_yacht/dsl/hook.rb, line 195 def dockerfile_command "RUN #{@command}" end
shell_command()
click to toggle source
The command that should be run in a shell script for this behavior.
# File lib/ruby_yacht/dsl/hook.rb, line 200 def shell_command @command end