Class: Heighliner::Cmds::Root
- Inherits:
-
Heighliner::Cli
- Object
- Heighliner::Cli
- Heighliner::Cmds::Root
- Defined in:
- lib/heighliner/cmds/root.rb
Instance Attribute Summary
Attributes inherited from Heighliner::Cli
Instance Method Summary collapse
Methods inherited from Heighliner::Cli
all_subcommands_usage, #define_options, #initialize, register, run_command, #set_config, #start_services, #stop_app, #stop_services
Methods included from Heighliner::CliOptions
Constructor Details
This class inherits a constructor from Heighliner::Cli
Instance Method Details
#execute(_opts) ⇒ Object
14 15 16 17 18 |
# File 'lib/heighliner/cmds/root.rb', line 14 def execute(_opts) ensure_setup cmd = (ARGV || []).join(' ') exec "docker exec -ti --user root #{app_container_name} #{cmd}" end |
#usage ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/heighliner/cmds/root.rb', line 6 def usage <<~USAGE Executes a command on the application docker container as a root user. USAGE: heighliner root COMMAND USAGE end |