Sha256: 2aac7a5b08b241689810e4e745e11ddfc60cc71ca7ef2e7a351e2fe78eae389b

Contents?: true

Size: 847 Bytes

Versions: 12

Compression:

Stored size: 847 Bytes

Contents

def compute_providers
  {
    :ecloud => {
      :server_attributes => {
        :name                 => "VM4",
        :row                  => "Layout Row 1",
        :group                => "Layout Group 1",
        :catalog_network_name => "bridged",
        :description          => "blarg",
        :operating_system => {
          :name =>  "Red Hat Enterprise Linux 5 (64-bit)",
          :href => "/cloudapi/ecloud/operatingsystems/rhel5_64guest/computepools/963",
        },
        :organization_uri => 'organizations/9284920'
      }.tap do |hash|
        [:template_href, :network_uri,
         :environment_name, :organization_uri].each do |k|
          key = "ecloud_#{k}".to_sym
          if Fog.credentials[key]
            hash[k]= Fog.credentials[key]
          end
        end
      end,
      :mocked => true,
    }
  }
end

Version data entries

12 entries across 10 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/tests/compute/helper.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ecloud-0.3.0/tests/compute/helper.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ecloud-0.3.0/tests/compute/helper.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/tests/compute/helper.rb
fog-ecloud-0.3.0 tests/compute/helper.rb
fog-ecloud-0.2.0 tests/compute/helper.rb
fog-ecloud-0.1.3 tests/compute/helper.rb
fog-ecloud-0.1.2 tests/compute/helper.rb
fog-ecloud-0.1.1 tests/compute/helper.rb
fog-ecloud-0.1.0 tests/compute/helper.rb
fog-ecloud-0.0.2 tests/compute/helper.rb
fog-ecloud-0.0.1 tests/compute/helper.rb