Method: Drydock::Project#cmd
- Defined in:
- lib/drydock/project.rb
#cmd(command) ⇒ Object
Set the command to automatically execute when the image is run.
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/drydock/project.rb', line 49 def cmd(command) requires_from!(:cmd) log_step('cmd', command) unless command.is_a?(Array) command = ['/bin/sh', '-c', command.to_s] end chain.run("# CMD #{command.inspect}", command: command) self end |