Class: Vines::Command::Bcrypt
- Inherits:
-
Object
- Object
- Vines::Command::Bcrypt
- Defined in:
- lib/vines/command/bcrypt.rb
Instance Method Summary collapse
Instance Method Details
#run(opts) ⇒ Object
6 7 8 9 |
# File 'lib/vines/command/bcrypt.rb', line 6 def run(opts) raise 'vines bcrypt <clear text>' unless opts[:args].size == 1 puts BCrypt::Password.create(opts[:args].first) end |