Class: RubyDice::CLI
- Inherits:
-
Thor
- Object
- Thor
- RubyDice::CLI
- Defined in:
- lib/ruby-dice/cli.rb
Instance Method Summary collapse
Instance Method Details
#throw ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ruby-dice/cli.rb', line 12 def throw = {}.tap do |o| o[:words] = ['length'] o[:wordlist] = ['wordlist'] o[:camelcase] = ['camelcase'] o[:numbers] = ['numbers'] end passphrase = RubyDice::Passphrase.generate IO.popen('xsel --clipboard --input', 'r+') { |c| c.print passphrase } puts passphrase if ['print'] end |