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.334 lib/cryptum/event/gtfo.rb
cryptum-0.0.333 lib/cryptum/event/gtfo.rb
cryptum-0.0.332 lib/cryptum/event/gtfo.rb
cryptum-0.0.331 lib/cryptum/event/gtfo.rb
cryptum-0.0.330 lib/cryptum/event/gtfo.rb
cryptum-0.0.329 lib/cryptum/event/gtfo.rb
cryptum-0.0.328 lib/cryptum/event/gtfo.rb
cryptum-0.0.327 lib/cryptum/event/gtfo.rb
cryptum-0.0.326 lib/cryptum/event/gtfo.rb
cryptum-0.0.325 lib/cryptum/event/gtfo.rb
cryptum-0.0.324 lib/cryptum/event/gtfo.rb
cryptum-0.0.323 lib/cryptum/event/gtfo.rb
cryptum-0.0.322 lib/cryptum/event/gtfo.rb
cryptum-0.0.321 lib/cryptum/event/gtfo.rb
cryptum-0.0.320 lib/cryptum/event/gtfo.rb
cryptum-0.0.319 lib/cryptum/event/gtfo.rb
cryptum-0.0.318 lib/cryptum/event/gtfo.rb
cryptum-0.0.317 lib/cryptum/event/gtfo.rb
cryptum-0.0.316 lib/cryptum/event/gtfo.rb
cryptum-0.0.315 lib/cryptum/event/gtfo.rb