Class: DockerRailsProxy::Rails::Credentials

Inherits:
DockerRailsProxy::Rails show all
Defined in:
lib/docker_rails_proxy/commands/rails/credentials.rb

Constant Summary

Constants included from Callbacks

Callbacks::INHERITABLE_CALLBACKS, Callbacks::UNINHERITABLE_CALLBACKS

Instance Attribute Summary collapse

Attributes inherited from DockerRailsProxy::Rails

#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

included, #logger

Methods included from DockerRailsProxy::Rsync

included, #sync

Methods included from Callbacks

included

Methods included from InheritableAttributes

included

Constructor Details

This class inherits a constructor from DockerRailsProxy::Base

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/docker_rails_proxy/commands/rails/credentials.rb', line 4

def options
  @options
end

Instance Method Details

#processObject



11
12
13
14
# File 'lib/docker_rails_proxy/commands/rails/credentials.rb', line 11

def process
  command = "EDITOR=vim bin/rails credentials:edit --environment #{options[:environment]}"
  execute "bash -c '#{command}'", tty: true
end