Class: Console

### Home Classes Methods

### In Files

- lib/mongrel_console/init.rb

### Parent

GemPlugin::Plugin"/commands"

### Methods

- #configure
- #run
- #validate

### Included Modules

- Mongrel::Command::Base

### Class/Module Index

Quicksearch

- Console
- MongrelConsoleRunner
- Object

No matching classes.

# Console

### Public Instance Methods

configure() click to toggle source

    # File lib/mongrel_console/init.rb, line 8
    def configure
      options [
        ['-c', '--chdir DIR', "Change to directory before running", :@dir, "."]
      ]
    end

run() click to toggle source

    # File lib/mongrel_console/init.rb, line 19
    def run
      begin
        Dir.chdir @dir
        load File.join(File.dirname(__FILE__), "console.rb")
      rescue Object
        STDERR.puts "Cannot run the console script: #$!"
      end
    end

validate() click to toggle source

    # File lib/mongrel_console/init.rb, line 14
    def validate
      valid_dir? @dir, "Directory is not valid"
      return @valid
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.