Module: OnContainer::Dev::ContainerCommandOps

Defined in:
lib/on_container/dev/container_command_ops.rb

Instance Method Summary collapse

Instance Method Details

#execute_given_or_default_commandObject



10
11
12
# File 'lib/on_container/dev/container_command_ops.rb', line 10

def execute_given_or_default_command
  exec(*ARGV)
end

#set_given_or_default_commandObject



6
7
8
# File 'lib/on_container/dev/container_command_ops.rb', line 6

def set_given_or_default_command
  ARGV.concat %w[rails server -p 3000 -b 0.0.0.0] if ARGV.empty?
end