Sha256: cbe610952c549e151e402014e140177b2ff18e20abc4d807383e90a9bbb178d3

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

module Spielbash
  class DeleteEnvironmentAction < Spielbash::BaseAction
    attr_accessor :command

    def initialize(command, root_context)
      super(root_context)
      @command = command
    end

    def execute(session)
      command.each_char do |c|
        session.send_key(c)
        sleep(action_context.typing_delay_s)
      end
      session.send_key('C-m')

      sleep(action_context.reading_delay_s)

      action_context.wait_check_cmd = nil
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spielbash-0.1.4 lib/spielbash/model/action/delete_environment_action.rb
spielbash-0.1.3 lib/spielbash/model/action/delete_environment_action.rb
spielbash-0.1.2 lib/spielbash/model/action/delete_environment_action.rb
spielbash-0.1.1 lib/spielbash/model/action/delete_environment_action.rb