Sha256: 2383d336a722a6cb4972aba423074eaef62e7a0be70b9e89495fc2863ef0e103

Contents?: true

Size: 509 Bytes

Versions: 39

Compression:

Stored size: 509 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

39 entries across 37 versions & 3 rubygems

Version Path
fog-openstack-0.1.27 lib/fog/compute/openstack/requests/get_console_output.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-openstack-0.1.26/lib/fog/compute/openstack/requests/get_console_output.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-openstack-0.1.26/lib/fog/compute/openstack/requests/get_console_output.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-openstack-0.1.26/lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.26 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.25 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.24 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.23 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.22 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.21 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.20 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.19 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.18 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.17 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.15 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.14 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.13 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.12 lib/fog/compute/openstack/requests/get_console_output.rb
fog-openstack-0.1.11 lib/fog/compute/openstack/requests/get_console_output.rb