Sha256: 4396dc3626e04e6444e5cd75c170ed35dd326246287fc8b3917f0637ee7f67f2

Contents?: true

Size: 633 Bytes

Versions: 50

Compression:

Stored size: 633 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module Compute

        class GetConsoleOutput < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'instanceId', 'requestId'
              @response[name] = @value
            when 'output'
              @response[name] = if @value
                Base64.decode64(@value)
              else
                nil
              end
            when 'timestamp'
              @response[name] = Time.parse(@value)
            end
          end

        end

      end
    end
  end
end

Version data entries

50 entries across 50 versions & 3 rubygems

Version Path
fog-0.7.2 lib/fog/compute/parsers/aws/get_console_output.rb
fog-0.7.1 lib/fog/compute/parsers/aws/get_console_output.rb
fog-0.7.0 lib/fog/compute/parsers/aws/get_console_output.rb
fog-0.6.0 lib/fog/compute/parsers/aws/get_console_output.rb
fog-0.5.3 lib/fog/compute/parsers/aws/get_console_output.rb
fog-0.5.2 lib/fog/compute/parsers/aws/get_console_output.rb
fog-0.5.1 lib/fog/compute/parsers/aws/get_console_output.rb
fog-0.5.0 lib/fog/compute/parsers/aws/get_console_output.rb
phpfog-fog-0.4.1.3 lib/fog/compute/parsers/aws/get_console_output.rb
phpfog-fog-0.4.1.2 lib/fog/compute/parsers/aws/get_console_output.rb
phpfog-fog-0.4.1.1 lib/fog/compute/parsers/aws/get_console_output.rb
phpfog-fog-0.4.1 lib/fog/compute/parsers/aws/get_console_output.rb
fog-0.4.1 lib/fog/compute/parsers/aws/get_console_output.rb
fog-0.4.0 lib/fog/aws/parsers/compute/get_console_output.rb
fog-0.3.34 lib/fog/aws/parsers/compute/get_console_output.rb
fog-0.3.33 lib/fog/aws/parsers/compute/get_console_output.rb
fog-0.3.32 lib/fog/aws/parsers/compute/get_console_output.rb
fog-0.3.31 lib/fog/aws/parsers/compute/get_console_output.rb
fog-0.3.30 lib/fog/aws/parsers/compute/get_console_output.rb
fog-0.3.29 lib/fog/aws/parsers/compute/get_console_output.rb