Sha256: 406079dcc7b5b1486f21cc8e43921ee4bf9689bf40c232cb4c6cf57cbddfe6b5

Contents?: true

Size: 690 Bytes

Versions: 3

Compression:

Stored size: 690 Bytes

Contents

module LunarShell
  class Engine < ::Rails::Engine
    isolate_namespace LunarShell

    initializer 'lunar_shell.add_middleware' do |app|
      app.middleware.insert_after Rack::ETag, LunarShell::Middleware::Interpreter
    end

    initializer "lunar_shell.assets.precompile" do |app|
      app.config.assets.precompile += %w(lunar_shell.coffee lunar_shell.sass)
    end

    config.app_generators.satellite :satellite

    def mount_path
      @mount_path ||= routes.url_helpers.root_path[0..-2]
    end

    def run_command_path(command)
      run_path.gsub('run', "#{command}/run")
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lunar_shell-0.5.2 lib/lunar_shell/engine.rb
lunar_shell-0.5.0 lib/lunar_shell/engine.rb
lunar_shell-0.4.1 lib/lunar_shell/engine.rb