https://github.com/hyperoslo/deviser
Allows impersonation straight from the command line for Devise projects
https://github.com/hyperoslo/deviser
Last synced: 7 days ago
JSON representation
Allows impersonation straight from the command line for Devise projects
- Host: GitHub
- URL: https://github.com/hyperoslo/deviser
- Owner: hyperoslo
- License: other
- Created: 2014-08-15T17:00:07.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-06-18T19:50:11.000Z (almost 9 years ago)
- Last Synced: 2025-02-24T05:13:28.909Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 12
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Deviser
[](https://codeclimate.com/github/hyperoslo/deviser)
There's [a](https://github.com/rcook/user_impersonate2) [small](https://github.com/astrails/rails_admin_impersonate) [variety](https://github.com/ankane/pretender) of projects related to impersonating users for support
purposes, but they all interfere with your project by requiring gems, routes and
views to be added.
Deviser allows impersonation straight from the command line for projects using
Devise.
**Supported Ruby versions: 1.9.3 or higher**
Licensed under the **MIT** license, see LICENSE for more information.

## Requirements
- Rails 3+ (this may need some testing)
- Devise
- Ruby [Readline](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/readline/rdoc/Readline.html) support
## Usage
Since Deviser is shy and does not want to interfere with your project, it utilizes
[Homebrew's install technique](http://brew.sh/#install) to be portable and environment agnostic.
**Please note:** Verify the actual script before running this in production
environments, we are not responsible for any mutated cats.
Run the following in the root of your Rails project:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/hyperoslo/deviser/master/deviser.rb)"
At the end of the wizard you'll be given a session key, which you can use in your
browser to immediately log in as the requested user.
### Heroku
Same procedure as above, but run the following instead:
heroku run 'ruby -e "$(curl -fsSL https://raw.githubusercontent.com/hyperoslo/deviser/master/deviser.rb)"'
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create pull request
## Credits
Hyper made this. We're a digital communications agency with a passion for good
code, and if you're using this script we probably want to hire you.