Module: Cryptum::Event::GTFO
- Defined in:
- lib/cryptum/event/gtfo.rb
Class Method Summary collapse
-
.help ⇒ Object
Display Usage for this Module.
-
.now(opts = {}) ⇒ Object
- Supported Method Parameters
-
Cryptum::Event::GTFO.now( ).
Class Method Details
.help ⇒ Object
Display Usage for this Module
29 30 31 32 33 |
# File 'lib/cryptum/event/gtfo.rb', line 29 public_class_method def self.help puts "USAGE: bot_conf = #{self}.now() " end |
.now(opts = {}) ⇒ Object
- Supported Method Parameters
-
Cryptum::Event::GTFO.now( )
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/cryptum/event/gtfo.rb', line 10 public_class_method def self.now(opts = {}) terminal_win = opts[:terminal_win] option_choice = opts[:option_choice] env = opts[:env] event_history = opts[:event_history] bot_conf = opts[:bot_conf] terminal_win.key_press_event.key_g = false Cryptum::API.gtfo( option_choice: option_choice, env: env, event_history: event_history, bot_conf: bot_conf ) rescue StandardError => e raise e end |