Sha256: 78529c57e1b90a637a2168222d4b148b10761074e3ac3b67fd245a11870ac3d9

Contents?: true

Size: 633 Bytes

Versions: 4

Compression:

Stored size: 633 Bytes

Contents

require 'veewee/provider/core/box'
require 'veewee/provider/core/box/vnc'
require 'veewee/provider/kvm/box/validate_kvm'

module Veewee
  module Provider
    module Kvm
      module BoxCommand
        # Type on the console
        def console_type(sequence,type_options={})
          vnc_port=@connection.servers.all(:name => name).first.vnc_port
          display_port=vnc_port.to_i - 5900
          ui.success "Sending keystrokes to VNC port :#{display_port} - TCP port: #{vnc_port}"
          vnc_type(sequence,"127.0.0.1",display_port)
        end

      end # End Module
    end # End Module
  end # End Module
end # End Module

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veewee-0.3.0.beta1 lib/veewee/provider/kvm/box/helper/console_type.rb
veewee-0.3.0.alpha9 lib/veewee/provider/kvm/box/helper/console_type.rb
veewee-0.3.0.alpha8 lib/veewee/provider/kvm/box/helper/console_type.rb
veewee-0.3.0.alpha7 lib/veewee/provider/kvm/box/helper/console_type.rb