Sha256: d45a810c213442bf80015772a90a4cb7ae9799eab4884dc331a22f5439c1b87b

Contents?: true

Size: 543 Bytes

Versions: 8

Compression:

Stored size: 543 Bytes

Contents

module Fog
  class Vcloud
    module Terremark
      class Ecloud

        class Real
          basic_request :power_on, 202, 'POST'
        end

        class Mock
          def power_on(vapp_uri)
            vapp, vdc = vapp_and_vdc_from_vapp_uri(vapp_uri)

            if vapp
              vapp[:status] = 4

              builder = Builder::XmlMarkup.new
              mock_it 200, builder.Task(xmlns)
            else
              mock_error 200, "401 Unauthorized"
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-0.3.16 lib/fog/vcloud/terremark/ecloud/requests/power_on.rb
fog-0.3.15 lib/fog/vcloud/terremark/ecloud/requests/power_on.rb
fog-0.3.14 lib/fog/vcloud/terremark/ecloud/requests/power_on.rb
fog-0.3.13 lib/fog/vcloud/terremark/ecloud/requests/power_on.rb
fog-0.3.12 lib/fog/vcloud/terremark/ecloud/requests/power_on.rb
fog-0.3.11 lib/fog/vcloud/terremark/ecloud/requests/power_on.rb
fog-0.3.10 lib/fog/vcloud/terremark/ecloud/requests/power_on.rb
fog-0.3.9 lib/fog/vcloud/terremark/ecloud/requests/power_on.rb