Sha256: 28d682087ec4210d048a2c000d83cdbd7e2a5af813e5d63e3748f43184d0a2a6

Contents?: true

Size: 589 Bytes

Versions: 16

Compression:

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

        end

      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fog-0.1.4 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.1.3 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.1.2 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.1.1 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.1.0 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.100 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.99 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.98 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.97 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.96 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.95 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.94 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.93 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.92 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.91 lib/fog/aws/parsers/ec2/get_console_output.rb
fog-0.0.90 lib/fog/aws/parsers/ec2/get_console_output.rb