Sha256: aa0f6c3c68a525fddeab6901a98ce57d8e29efccf1fad4d7063f43a6a1e65f61

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 KB

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::Orders.gtfo(
          option_choice: option_choice,
          env: env,
          event_history: event_history,
          bot_conf: bot_conf
        )
      rescue Interrupt, StandardError => e
        Cryptum::Log.append(level: :error, msg: e, which_self: self, event_history: event_history)
      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

9 entries across 9 versions & 1 rubygems

Version Path
cryptum-0.0.397 lib/cryptum/event/gtfo.rb
cryptum-0.0.396 lib/cryptum/event/gtfo.rb
cryptum-0.0.395 lib/cryptum/event/gtfo.rb
cryptum-0.0.394 lib/cryptum/event/gtfo.rb
cryptum-0.0.393 lib/cryptum/event/gtfo.rb
cryptum-0.0.392 lib/cryptum/event/gtfo.rb
cryptum-0.0.389 lib/cryptum/event/gtfo.rb
cryptum-0.0.388 lib/cryptum/event/gtfo.rb
cryptum-0.0.387 lib/cryptum/event/gtfo.rb