Class: LunarShell::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/lunar_shell/engine.rb

Instance Method Summary collapse

Instance Method Details

#mount_pathObject



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_pathObject



23
24
25
# File 'lib/lunar_shell/engine.rb', line 23

def run_path
  @run_path ||= routes.url_helpers.satellites_run_path
end