fog-softlayer 0.0.7 → 0.0.8

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
- OWE5Yjc5YjM3MzM5ZmQxMGQ1ZjIzMmE0OWQ5YmVhNWJhNDFmNDAwNQ==
4
+ NGUxNWEyYTgyY2IzNTllYTY0NWVmNmQ3NmExMWI1ZGM5OGQ1MDBiOA==
5
5
  data.tar.gz: !binary |-
6
- ZDY5YTQyZTkzZGM1NjhkMGIyYThmMTYwNTM0MzY4NTczY2UxNDU3ZQ==
6
+ YzZjNzViYWU2Yzg0OWY1YTc3YTg5MDZjMDYyMDAyZTJhZmJjOTc0MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDlmN2Q2YWM4N2I3YzNhZmUzNzM3ZmNhOTJhNmYwZjM1Y2E1MzdmMTFjOTY4
10
- NzVmY2RlMjkyODQxYWNlOWRmNzcyMDhlMDdhZjNjYjE0YWQ0N2YyODFmNGU5
11
- Yzk5MGI1MDMxMGEzYzQ2ODhlZmQwYjRiZWI2MjYzZGU1YjA1MWU=
9
+ ZDE1MWMyMTY3OTUyODlhNTRlNzJiYmNlNWUyOWE5NGU5N2JiMGQ2ZTc5ZThm
10
+ NjY3OGMwYmYwODI1OGNjMjA5YzE0YTU0YjZkYTY4NGMxNTE4ZjM5MzE1MjM4
11
+ YzYwM2EzNTM1YWIwY2FhY2RjMjRjOGZhMzFmNTU5ODIwMjRmYzg=
12
12
  data.tar.gz: !binary |-
13
- OTU4ZGU1OTU5Y2Q5MGUxYjg4NjYzODc1Mzk1YTk1Nzg1YTkwOThmNjAxYjMw
14
- MzczMTdkNGY2ZDdmZTUzZTNhNjZhMTc4M2ZlMTcwM2M4MmYzMGNjNTNhZGI0
15
- ZmZmMzQ1ZTlkYTRiYzExNjBhYTFjMWQwMDliMWYyMTVmZDM3M2Y=
13
+ NjlmNjNiYzIwMmFiZGRkMDU1MjFhN2Q1YzZhZWVmYTkyZDlmNzMyYTk2YzU2
14
+ MzdlMmUxM2NkZmEzOGNmNzk4MWJhY2FiZjYyYWU3MjkyZTE3ZmM2NzE2MzJm
15
+ NzQ4MDE1OTBkODQ4NTYwNmNhOTA5YWVjZGYyYzFlMDUxZjIwMDA=
@@ -15,7 +15,7 @@ matrix:
15
15
  gemfile: Gemfile
16
16
  - rvm: 2.1.1
17
17
  gemfile: Gemfile
18
- env: COVERAGE=true
18
+ # env: COVERAGE=true
19
19
  - rvm: 2.1.1
20
20
  gemfile: gemfiles/Gemfile-edge
21
21
  - rvm: jruby-18mode
@@ -1,3 +1,8 @@
1
+ ### 0.0.7 2014-05-29
2
+
3
+ * Compute requests and models initial development complete. Supports both VMs and BMC.
4
+ * Storage requests and models initial development complete.
5
+
1
6
  ### 0.0.1 / 2014-04-18
2
7
 
3
8
  Enhancements:
@@ -0,0 +1,100 @@
1
+ ### Compute Examples
2
+
3
+ These examples all assume you have `~/.fog` which contains the following
4
+
5
+ ```yaml
6
+ :softlayer_username: example-username
7
+ :softlayer_api_key: 1a1a1a1a1a1a1a1a1a11a1a1a1a1a1a1a1a1a1
8
+ :softlayer_default_domain: example.com
9
+ ```
10
+
11
+ #### Create a connection to SoftLayer Compute Service
12
+
13
+ ```ruby
14
+ require 'fog/softlayer'
15
+ @sl = Fog::Compute[:softlayer]
16
+ ```
17
+
18
+ #### Use the Models
19
+ 1. List all servers
20
+
21
+ ```ruby
22
+ @sl.servers # list all servers
23
+ @sl.servers.size # get a count of all servers
24
+ ```
25
+
26
+ 1. Get a server's details
27
+
28
+ ```ruby
29
+ server = @sl.servers.get(<server id>)
30
+ server.name # => 'hostname.example.com'
31
+ server.created_at # => DateTime the server was created
32
+ server.state # => 'Running', 'Stopped', 'Terminated', etc.
33
+ ```
34
+
35
+ 1. Provision a new VM with flavor (simple).
36
+
37
+ ```ruby
38
+ opts = {
39
+ :flavor_id => "m1.small",
40
+ :image_id => "23f7f05f-3657-4330-8772-329ed2e816bc",
41
+ :name => "test",
42
+ :datacenter => {:name=>"ams01"}
43
+ }
44
+ new_server = @sl.servers.create(opts)
45
+ new_server.id # => 1337
46
+ ```
47
+
48
+ 1. Provision a new BMC instance with flavor (simple).
49
+
50
+ ```ruby
51
+ opts = {
52
+ :flavor_id => "m1.small",
53
+ :os_code => "UBUNTU_LATEST",
54
+ :name => "test1",
55
+ :datacenter => {:name=>"ams01"},
56
+ :bare_metal => true
57
+ }
58
+ @sl.servers.create(opts)
59
+ new_server.id # => 1338
60
+ ```
61
+
62
+ 1. Provision a new VM without flavor.
63
+
64
+ ```ruby
65
+ opts = {
66
+ :cpu => 2,
67
+ :ram => 2048,
68
+ :disk => [{'device' => 0, 'diskImage' => {'capacity' => 100 } }],
69
+ :ephemeral_storage => true,
70
+ :domain => "not-my-default.com",
71
+ :name => "hostname",
72
+ :os_code => "UBUNTU_LATEST",
73
+ :name => "test2",
74
+ :datacenter => {:name=>"ams01"},
75
+ }
76
+ ```
77
+
78
+ 1. Provision a BMC Instance without a flavor
79
+
80
+ ```ruby
81
+ opts = {
82
+ :cpu => 8,
83
+ :ram => 16348,
84
+ :disk => {'capacity' => 100 },
85
+ :ephemeral_storage => true,
86
+ :domain => "not-my-default.com",
87
+ :name => "hostname",
88
+ :os_code => "UBUNTU_LATEST",
89
+ :name => "test2",
90
+ :datacenter => {:name=>"ams01"},
91
+ :bare_metal => true
92
+ }
93
+ ```
94
+
95
+ 1. Delete a VM or BMC instance.
96
+
97
+ ```ruby
98
+ @sl.servers.get(<server id>).destroy
99
+ ```
100
+
@@ -8,10 +8,11 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Fog::Softlayer::VERSION
9
9
  spec.authors = ["Matt Eldridge"]
10
10
  spec.email = ["matt.eldridge@us.ibm.com"]
11
+ spec.date = '2014-06-05'
11
12
  spec.description = %q{Module for the 'fog' gem to support SoftLayer Cloud}
12
13
  spec.summary = %q{This library can be used as a module for `fog` or as standalone provider
13
14
  to use the SoftLayer Cloud in applications}
14
- spec.homepage = ""
15
+ spec.homepage = "https://github.com/softlayer/fog-softlayer"
15
16
  spec.license = "MIT"
16
17
 
17
18
  spec.files = `git ls-files`.split($/)
@@ -23,7 +24,6 @@ Gem::Specification.new do |spec|
23
24
  spec.add_dependency 'fog-core'
24
25
  spec.add_dependency 'fog-json'
25
26
 
26
- spec.add_development_dependency 'bundler', '~> 1.3'
27
27
  spec.add_development_dependency('minitest')
28
28
  spec.add_development_dependency('jekyll') unless RUBY_PLATFORM == 'java'
29
29
  spec.add_development_dependency('rake')
@@ -34,6 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency('shindo', '~> 0.3.4')
35
35
  spec.add_development_dependency('fission')
36
36
  spec.add_development_dependency('pry')
37
- spec.add_development_dependency('pry-debugger')
38
37
  spec.add_development_dependency('google-api-client', '~> 0.6', '>= 0.6.2')
39
38
  end
@@ -23,11 +23,13 @@ module Fog
23
23
  # ==== See Also
24
24
  # http://docs.rackspace.com/files/api/v1/cf-devguide/content/Set_Account_Metadata-d1a4460.html
25
25
  def post_set_meta_temp_url_key(key)
26
- request(
26
+ response = request(
27
27
  :expects => [201, 202, 204],
28
28
  :method => 'POST',
29
29
  :headers => {'X-Account-Meta-Temp-Url-Key' => key}
30
30
  )
31
+ @temp_url_key = get_temp_url_key_for_account
32
+ response
31
33
  end
32
34
 
33
35
  end
@@ -6,6 +6,6 @@
6
6
  #
7
7
  module Fog
8
8
  module Softlayer
9
- VERSION = "0.0.7"
9
+ VERSION = "0.0.8"
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-softlayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Eldridge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-29 00:00:00.000000000 Z
11
+ date: 2014-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: bundler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '1.3'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: '1.3'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: minitest
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -206,20 +192,6 @@ dependencies:
206
192
  - - ! '>='
207
193
  - !ruby/object:Gem::Version
208
194
  version: '0'
209
- - !ruby/object:Gem::Dependency
210
- name: pry-debugger
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ! '>='
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ! '>='
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
195
  - !ruby/object:Gem::Dependency
224
196
  name: google-api-client
225
197
  requirement: !ruby/object:Gem::Requirement
@@ -259,6 +231,7 @@ files:
259
231
  - docs/cla-individual.md
260
232
  - docs/fog-softlayer-CCLA.pdf
261
233
  - docs/fog-softlayer-CLA.pdf
234
+ - examples/compute.md
262
235
  - examples/storage.md
263
236
  - fog-softlayer.gemspec
264
237
  - gemfiles/Gemfile-edge
@@ -338,7 +311,7 @@ files:
338
311
  - tests/softlayer/requests/storage/auth_tests.rb
339
312
  - tests/softlayer/requests/storage/container_tests.rb
340
313
  - tests/softlayer/requests/storage/object_tests.rb
341
- homepage: ''
314
+ homepage: https://github.com/softlayer/fog-softlayer
342
315
  licenses:
343
316
  - MIT
344
317
  metadata: {}