Sha256: 46756ea152a3a6946fe0ab95f467b765f3fe33abd6729e4b4f1454c7364792ec

Contents?: true

Size: 511 Bytes

Versions: 85

Compression:

Stored size: 511 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real

        def get_console_output(server_id, log_length)
          body = {
            'os-getConsoleOutput' => {
              'length' => log_length
            }
          }
          server_action(server_id, body)
        end

      end

      class Mock

        def get_console_output(server_id, log_length)
          response = Excon::Response.new
          response.status = 200
          response
        end

      end
    end
  end
end

Version data entries

85 entries across 85 versions & 13 rubygems

Version Path
fog-1.17.0 lib/fog/openstack/requests/compute/get_console_output.rb
fog-1.16.0 lib/fog/openstack/requests/compute/get_console_output.rb
fog-maestrodev-1.15.0.20130927082724 lib/fog/openstack/requests/compute/get_console_output.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/openstack/requests/compute/get_console_output.rb
fog-1.15.0 lib/fog/openstack/requests/compute/get_console_output.rb
gapinc-fog-1.14.0 lib/fog/openstack/requests/compute/get_console_output.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/openstack/requests/compute/get_console_output.rb
fog-1.14.0 lib/fog/openstack/requests/compute/get_console_output.rb
fog-1.13.0 lib/fog/openstack/requests/compute/get_console_output.rb
gapinc-fog-1.12.1.2 lib/fog/openstack/requests/compute/get_console_output.rb
gapinc-fog-1.12.1.1 lib/fog/openstack/requests/compute/get_console_output.rb
gapinc-fog-1.12.1a lib/fog/openstack/requests/compute/get_console_output.rb
gapinc-fog-1.12.1 lib/fog/openstack/requests/compute/get_console_output.rb
fog-1.12.1 lib/fog/openstack/requests/compute/get_console_output.rb
fog-1.12.0 lib/fog/openstack/requests/compute/get_console_output.rb
hpfog-0.0.20 lib/fog/openstack/requests/compute/get_console_output.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/openstack/requests/compute/get_console_output.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/openstack/requests/compute/get_console_output.rb
fog-nirvanix-1.8.2 lib/fog/openstack/requests/compute/get_console_output.rb
fog-1.11.1 lib/fog/openstack/requests/compute/get_console_output.rb