Sha256: 335e9266defcc465fa1f215c2e9a1853fe785fdbd282986f796720676404cd92

Contents?: true

Size: 927 Bytes

Versions: 110

Compression:

Stored size: 927 Bytes

Contents

# frozen_string_literal: true

module Cryptum
  # This plugin is used to Get the F* Out (GTFO) when the "G" Key is Pressed
  module Event
    module GTFO
      # Supported Method Parameters::
      # Cryptum::Event::GTFO.now(
      # )
      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

      # Display Usage for this Module
      public_class_method def self.help
        puts "USAGE:
         bot_conf = #{self}.now()
        "
      end
    end
  end
end

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
cryptum-0.0.380 lib/cryptum/event/gtfo.rb
cryptum-0.0.379 lib/cryptum/event/gtfo.rb
cryptum-0.0.378 lib/cryptum/event/gtfo.rb
cryptum-0.0.377 lib/cryptum/event/gtfo.rb
cryptum-0.0.376 lib/cryptum/event/gtfo.rb
cryptum-0.0.375 lib/cryptum/event/gtfo.rb
cryptum-0.0.374 lib/cryptum/event/gtfo.rb
cryptum-0.0.373 lib/cryptum/event/gtfo.rb
cryptum-0.0.372 lib/cryptum/event/gtfo.rb
cryptum-0.0.370 lib/cryptum/event/gtfo.rb
cryptum-0.0.369 lib/cryptum/event/gtfo.rb
cryptum-0.0.368 lib/cryptum/event/gtfo.rb
cryptum-0.0.367 lib/cryptum/event/gtfo.rb
cryptum-0.0.366 lib/cryptum/event/gtfo.rb
cryptum-0.0.365 lib/cryptum/event/gtfo.rb
cryptum-0.0.364 lib/cryptum/event/gtfo.rb
cryptum-0.0.363 lib/cryptum/event/gtfo.rb
cryptum-0.0.362 lib/cryptum/event/gtfo.rb
cryptum-0.0.361 lib/cryptum/event/gtfo.rb
cryptum-0.0.360 lib/cryptum/event/gtfo.rb