Class: LunarShell::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- LunarShell::Engine
- Defined in:
- lib/lunar_shell/engine.rb
Instance Method Summary collapse
Instance Method Details
#mount_path ⇒ Object
15 16 17 |
# File 'lib/lunar_shell/engine.rb', line 15 def mount_path @mount_path ||= routes.url_helpers.root_path[0..-2] end |
#run_command_path(command) ⇒ Object
19 20 21 |
# File 'lib/lunar_shell/engine.rb', line 19 def run_command_path(command) run_path.gsub('run', "#{command}/run") end |
#run_path ⇒ Object
23 24 25 |
# File 'lib/lunar_shell/engine.rb', line 23 def run_path @run_path ||= routes.url_helpers.satellites_run_path end |