Method: Totpc::CLI#add
- Defined in:
- lib/totpc/cli.rb
#add ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/totpc/cli.rb', line 16 def add STDOUT.print 'id: ' id = STDIN.gets.chomp STDOUT.print 'secret: ' secret = STDIN.gets.chomp @secrets.add(id: id, secret: secret) end |