rapid7/metasploit-framework — pull request #3593 by limhoff-r7 (2014-07-31 18:40:04+00:00)
Title: msfpro compatibility

[MSP-10964](https://jira.tor.rapid7.com/secure/RapidBoard.jspa?rapidView=84&selectedIssue=MSP-10964)

Allow msfpro to load msfconsole. Additionally, allow RAILS_ENV or RAILS_ENV and --environment to be used in addition to just `--environment`, with `--environment` taking precedence.

# Verification Steps

## Default

- [ ] `./msfconsole`
- [ ] `irb`
- [ ] VERIFY `Rails.env` is `'production'` by default
- [ ] `exit`
- [ ] `exit`

## RAILS_ENV

- [ ] `RAILS_ENV=development ./msfconsole`
- [ ] `irb`
- [ ] VERIFY `Rails.env` is `'development'`, indicating the RAILS_ENV can override the default
- [ ] `exit`
- [ ] `exit`

## --environment

- [ ] `./msfconsole --environment development`
- [ ] `irb`
- [ ] VERIFY `Rails.env` is `'development'`, indicating `--environment` can override the default
- [ ] `exit`
- [ ] `exit`

## RAILS_ENV and --environment

- [ ] `RAILS_ENV=test ./msfconsole --environment development`
- [ ] `irb`
- [ ] VERIFY `Rails.env` is `'development'`, indicating that `--environment` can override `RAILS_ENV`
- [ ] `exit`
- [ ] `exit`

## `rake spec`