Class: DockerRailsProxy::Rails
- Defined in:
- lib/docker_rails_proxy/commands/rails.rb,
lib/docker_rails_proxy/commands/rails/credentials.rb,
lib/docker_rails_proxy/commands/rails/fhir_application_credentials.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Credentials, FhirApplicationCredentials
Constant Summary
Constants included from Callbacks
Callbacks::INHERITABLE_CALLBACKS, Callbacks::UNINHERITABLE_CALLBACKS
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Attributes inherited from Docker
#app_container_id, #docker_options
Attributes inherited from Base
#additional_arguments, #additional_arguments_options, #arguments
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 Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
3 4 5 |
# File 'lib/docker_rails_proxy/commands/rails.rb', line 3 def args @args end |
Instance Method Details
#process ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/docker_rails_proxy/commands/rails.rb', line 17 def process command, *@args = arguments case command when 'c', 'console' then console when 'db', 'dbconsole' then db when 'logs' then logs when 'restart', 'touch' then restart when 'secrets' then secrets else execute "bin/rails #{command} #{args.join(' ')}", tty: true end end |