Class: Configure::Controllers::Start

### Home Classes Methods

### In Files

- lib/mongrel_config/win32_app.rb
- lib/mongrel_config/app.rb

### Parent

R'/start/(\w+)'

### Methods

- #get
- #post

### Class/Module Index

Quicksearch

- Configure
- Configure::Controllers
- Configure::Controllers::ClearLogs
- Configure::Controllers::Delete
- Configure::Controllers::Index
- Configure::Controllers::Info
- Configure::Controllers::Install
- Configure::Controllers::Kill
- Configure::Controllers::Logs
- Configure::Controllers::Start
- Configure::Controllers::Stop
- Configure::Views
- ConfigTool
- W32Support

No matching classes.

# Configure::Controllers::Start

### Public Instance Methods

get(service) click to toggle source

    # File lib/mongrel_config/win32_app.rb, line 31
    def get(service)
      runner = Thread.new do
        W32Support.start(service) do |status|
          $service_logs << "Starting #{service}: #{status}\n"
          sleep 1
        end
      end

      $service_group.add(runner)

      redirect Index
    end

post() click to toggle source

    # File lib/mongrel_config/app.rb, line 20
    def post
      @results = `mongrel_rails start -d -p #{input.port} -e #{input.env} -n #{input.num_procs} -a #{input.address}`
      render :start_done
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.