Class: DockerRailsProxy::Rails
- Defined in:
- lib/docker_rails_proxy/commands/rails.rb
Constant Summary
Constants included from Callbacks
Callbacks::INHERITABLE_CALLBACKS, Callbacks::UNINHERITABLE_CALLBACKS
Instance Attribute Summary
Attributes inherited from Docker
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
build_path, call, command, execute, #initialize
Methods included from Logger
Methods included from Rsync
Methods included from Callbacks
Methods included from InheritableAttributes
Constructor Details
This class inherits a constructor from DockerRailsProxy::Base
Instance Method Details
#process ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/docker_rails_proxy/commands/rails.rb', line 3 def process command, *args = arguments case command when 'c', 'console' then console args when 'db', 'dbconsole' then db args when 'logs' then logs args when 'restart', 'touch' then restart when 'secrets' then secrets else execute "bin/rails #{command} #{args.join(' ')}", tty: true end end |