fog-softlayer 0.3.16 → 0.3.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmQwNjc3NzUzZWIwY2I2YTcwYjNjYzA5ZDFjNGRhYWI1ZmIxOWZlMA==
4
+ N2E4YWU0MGJjNzIyNWE2MDA2YWZiMmZmODAwYzBmYmFiN2IxNWIyMA==
5
5
  data.tar.gz: !binary |-
6
- ZjNkZGM0NmM4ODhiMzY0ZjhmZDkxMjNmMTNiMGI2YjcxYmM5Zjk0MA==
6
+ ZGRjMWUwMTNjZjljOTNkYmZjMDRmN2I2M2VkMzQwM2ZmODIzYjRkNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTQ2ZGIxMDEyYzkzMDk4MzVlNmZmMDM5ZjgzM2YxMTJiZGQ2NjMwOGNjYWU1
10
- MjVjNTZmMDk3ZDM2ZGZkODM5ZThlZDkxYzgxMGIzYWRkNmUzMTk2NTZhMjA3
11
- YjgwOTFhNGNiYzA5ODA3NGQ2NTM2OTJhNmQ4ZTZmZjNjOTcwMjQ=
9
+ ODdmYWFmYzYzYTMwMjYyNDk4NTY2MGM0NmU1ZGY5MzFmZjAwODFkNTBiZjE5
10
+ YzIxYTFhMWU5ZGMxYWY0NTk1OTg2NDQzNWE5OGU3ZjhhNjZhNTAwNmNjOTNi
11
+ NTk4NWRlZDZkOTc4YTdiNGM5M2JlZDNiZjY5ZjI4Zjc3MTM3ZGI=
12
12
  data.tar.gz: !binary |-
13
- MGJkMGJkYzZlMWVhMjg0NTVlNGJlYjI5ZDFhMzU3YjgzYzRjM2NlYTdkODgy
14
- MDU2MTg2ZGM5OTZmOGI5YzEyODBmODc5NGM0MWJiYzYzN2ZlYzE3MGZiNTBl
15
- Yjk2YTY3ZWUxZGIyNTBkN2UwODI1NzhjMTlkYmEyNzg2NjUzYzk=
13
+ ZmVjNTk1MTcyNjRkZTliZmU2ZWI2MzQ4OTA4Y2RiM2I3ODQ2OWI4MGUyOTlm
14
+ MDEwZjU5MTQ3ZDFmMjg2YzY5MDZjMWJmOTZhZDFkZjBhZjQ2NDQxNmQyOTA3
15
+ MTM1OGI0YTI3YzY0NGQzODA2ZGFiNDhiYzVkYTlkZTcwYTU2ZWM=
data/examples/compute.md CHANGED
@@ -242,6 +242,21 @@ default:
242
242
  :private_network_only => true
243
243
  }
244
244
 
245
+ private_vm = @sl.servers.create(opts)
246
+ # => <Fog::Compute::Softlayer::Server>
247
+ ```
248
+ 1. Provision a Server with 1Gbps network components.
249
+
250
+ ```ruby
251
+ opts = {
252
+ :flavor_id => 'm1.large',
253
+ :os_code => 'UBUNTU_LATEST',
254
+ :domain => 'example.com',
255
+ :datacenter => 'wdc01',
256
+ :name => 'speedy-tubes',
257
+ :network_components => [ {:speed => 1000 } ],
258
+ }
259
+
245
260
  private_vm = @sl.servers.create(opts)
246
261
  # => <Fog::Compute::Softlayer::Server>
247
262
  ```
@@ -135,10 +135,12 @@ module Fog
135
135
 
136
136
  end
137
137
 
138
- class Hash
139
- def deep_merge(second)
140
- merger = proc { |key, v1, v2| Hash === v1 && Hash === v2 ? v1.merge(v2, &merger) : v2 }
141
- self.merge(second, &merger)
138
+ unless {}.respond_to? :deep_merge
139
+ class Hash
140
+ def deep_merge(second)
141
+ merger = proc { |key, v1, v2| Hash === v1 && Hash === v2 ? v1.merge(v2, &merger) : v2 }
142
+ self.merge(second, &merger)
143
+ end
142
144
  end
143
145
  end
144
146
 
@@ -7,6 +7,6 @@
7
7
 
8
8
  module Fog
9
9
  module Softlayer
10
- VERSION = "0.3.16"
10
+ VERSION = "0.3.17"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-softlayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Eldridge