Sha256: 8ef4f364d3f2673fe55d61138444587810a9727a8aa2937e9a14556d0e0ac509

Contents?: true

Size: 545 Bytes

Versions: 90

Compression:

Stored size: 545 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module EC2

        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] = Base64.decode64(@value)
            when 'timestamp'
              @response[name] = Time.parse(@value)
            end
          end

        end

      end
    end
  end
end

Version data entries

90 entries across 90 versions & 2 rubygems

Version Path
geemus-fog-0.0.0 lib/fog/aws/parsers/ec2/get_console_output.rb
geemus-fog-0.0.1 lib/fog/aws/parsers/ec2/get_console_output.rb
geemus-fog-0.0.3 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.89 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.88 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.87 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.86 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.85 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.84 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.83 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.82 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.81 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.80 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.79 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.78 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.77 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.76 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.75 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.74 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.73 lib/fog/aws/parsers/ec2/get_console_output.rb