fog-aliyun 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/CODE_OF_CONDUCT.md +13 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +309 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +7 -0
  12. data/fog-aliyun.gemspec +30 -0
  13. data/lib/fog/aliyun.rb +19 -0
  14. data/lib/fog/aliyun/compute.rb +346 -0
  15. data/lib/fog/aliyun/models/compute/vpc.rb +69 -0
  16. data/lib/fog/aliyun/models/compute/vpcs.rb +89 -0
  17. data/lib/fog/aliyun/models/compute/vswitch.rb +70 -0
  18. data/lib/fog/aliyun/models/compute/vswitches.rb +87 -0
  19. data/lib/fog/aliyun/models/storage/directories.rb +45 -0
  20. data/lib/fog/aliyun/models/storage/directory.rb +48 -0
  21. data/lib/fog/aliyun/models/storage/file.rb +197 -0
  22. data/lib/fog/aliyun/models/storage/files.rb +178 -0
  23. data/lib/fog/aliyun/requests/compute/allocate_eip_address.rb +79 -0
  24. data/lib/fog/aliyun/requests/compute/allocate_public_ip_address.rb +63 -0
  25. data/lib/fog/aliyun/requests/compute/associate_eip_address.rb +66 -0
  26. data/lib/fog/aliyun/requests/compute/attach_disk.rb +82 -0
  27. data/lib/fog/aliyun/requests/compute/create_disk.rb +135 -0
  28. data/lib/fog/aliyun/requests/compute/create_image.rb +79 -0
  29. data/lib/fog/aliyun/requests/compute/create_security_group.rb +77 -0
  30. data/lib/fog/aliyun/requests/compute/create_security_group_ip_rule.rb +86 -0
  31. data/lib/fog/aliyun/requests/compute/create_security_group_sg_rule.rb +86 -0
  32. data/lib/fog/aliyun/requests/compute/create_server.rb +188 -0
  33. data/lib/fog/aliyun/requests/compute/create_snapshot.rb +60 -0
  34. data/lib/fog/aliyun/requests/compute/create_vpc.rb +73 -0
  35. data/lib/fog/aliyun/requests/compute/create_vswitch.rb +81 -0
  36. data/lib/fog/aliyun/requests/compute/delete_disk.rb +58 -0
  37. data/lib/fog/aliyun/requests/compute/delete_image.rb +58 -0
  38. data/lib/fog/aliyun/requests/compute/delete_security_group.rb +51 -0
  39. data/lib/fog/aliyun/requests/compute/delete_security_group_ip_rule.rb +85 -0
  40. data/lib/fog/aliyun/requests/compute/delete_security_group_sg_rule.rb +86 -0
  41. data/lib/fog/aliyun/requests/compute/delete_server.rb +48 -0
  42. data/lib/fog/aliyun/requests/compute/delete_snapshot.rb +45 -0
  43. data/lib/fog/aliyun/requests/compute/delete_vpc.rb +52 -0
  44. data/lib/fog/aliyun/requests/compute/delete_vswitch.rb +51 -0
  45. data/lib/fog/aliyun/requests/compute/detach_disk.rb +51 -0
  46. data/lib/fog/aliyun/requests/compute/join_security_group.rb +41 -0
  47. data/lib/fog/aliyun/requests/compute/leave_security_group.rb +41 -0
  48. data/lib/fog/aliyun/requests/compute/list_disks.rb +75 -0
  49. data/lib/fog/aliyun/requests/compute/list_eip_addresses.rb +81 -0
  50. data/lib/fog/aliyun/requests/compute/list_images.rb +85 -0
  51. data/lib/fog/aliyun/requests/compute/list_security_group_rules.rb +74 -0
  52. data/lib/fog/aliyun/requests/compute/list_security_groups.rb +81 -0
  53. data/lib/fog/aliyun/requests/compute/list_server_types.rb +77 -0
  54. data/lib/fog/aliyun/requests/compute/list_servers.rb +74 -0
  55. data/lib/fog/aliyun/requests/compute/list_snapshots.rb +86 -0
  56. data/lib/fog/aliyun/requests/compute/list_vpcs.rb +64 -0
  57. data/lib/fog/aliyun/requests/compute/list_vswitchs.rb +67 -0
  58. data/lib/fog/aliyun/requests/compute/list_zones.rb +44 -0
  59. data/lib/fog/aliyun/requests/compute/modify_vpc.rb +73 -0
  60. data/lib/fog/aliyun/requests/compute/modify_vswitch.rb +73 -0
  61. data/lib/fog/aliyun/requests/compute/reboot_server.rb +44 -0
  62. data/lib/fog/aliyun/requests/compute/release_eip_address.rb +53 -0
  63. data/lib/fog/aliyun/requests/compute/start_server.rb +42 -0
  64. data/lib/fog/aliyun/requests/compute/stop_server.rb +42 -0
  65. data/lib/fog/aliyun/requests/compute/unassociate_eip_address.rb +56 -0
  66. data/lib/fog/aliyun/requests/storage/copy_object.rb +42 -0
  67. data/lib/fog/aliyun/requests/storage/delete_bucket.rb +30 -0
  68. data/lib/fog/aliyun/requests/storage/delete_container.rb +38 -0
  69. data/lib/fog/aliyun/requests/storage/delete_object.rb +53 -0
  70. data/lib/fog/aliyun/requests/storage/get_bucket.rb +148 -0
  71. data/lib/fog/aliyun/requests/storage/get_container.rb +72 -0
  72. data/lib/fog/aliyun/requests/storage/get_containers.rb +76 -0
  73. data/lib/fog/aliyun/requests/storage/get_object.rb +45 -0
  74. data/lib/fog/aliyun/requests/storage/get_object_http_url.rb +43 -0
  75. data/lib/fog/aliyun/requests/storage/get_object_https_url.rb +43 -0
  76. data/lib/fog/aliyun/requests/storage/head_object.rb +34 -0
  77. data/lib/fog/aliyun/requests/storage/list_buckets.rb +47 -0
  78. data/lib/fog/aliyun/requests/storage/list_objects.rb +104 -0
  79. data/lib/fog/aliyun/requests/storage/put_bucket.rb +23 -0
  80. data/lib/fog/aliyun/requests/storage/put_container.rb +35 -0
  81. data/lib/fog/aliyun/requests/storage/put_object.rb +199 -0
  82. data/lib/fog/aliyun/storage.rb +214 -0
  83. data/lib/fog/aliyun/version.rb +5 -0
  84. data/lib/fog/bin/aliyun.rb +31 -0
  85. metadata +227 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3832cc5a22287a780d5db5052856762bdeb92015
4
+ data.tar.gz: f203d9aee9f037683ada71ade9bd94d660c12d81
5
+ SHA512:
6
+ metadata.gz: c0a398c13920fd1a2cc963c5e932795a15a7e291018c9926081e5f6359a1b4c3fc4c9345bd6b5876e0038cfe4993d2987378930fed213792993671fa1ecda918
7
+ data.tar.gz: 15555676894ee0653f605f6aed1f3d0a35fa48e0fe266427ef873240dd3d89165ade2204800079903faf5abe37ef780412c67295db8bb8838c2d5b8448b316bd
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *~
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.6
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in fog-aliyun.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 dengqinsi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,309 @@
1
+ # Fog::Aliyun
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'fog-aliyun'
9
+ ```
10
+
11
+ And then execute:
12
+ ```shell
13
+ $ bundle
14
+ ```
15
+
16
+ Or install it yourself as:
17
+
18
+ ```shell
19
+ $ gem install fog-aliyun
20
+ ```
21
+
22
+ ## Usage
23
+ Before you can use fog-aliyun, you must require it in your application:
24
+
25
+ ```ruby
26
+ require 'fog/aliyun'
27
+ ```
28
+
29
+ Since it's a bad practice to have your credentials in source code, you should load them from default fog configuration file: ```~/.fog```. This file could look like this:
30
+
31
+ ```
32
+ default:
33
+ :aliyun_accesskey_id: <YOUR_ACCESS_KEY_ID>,
34
+ :aliyun_accesskey_secret: <YOUR_SECRET_ACCESS_KEY>,
35
+ :aliyun_oss_endpoint: <YOUR_OSS_ENDPOINT>,
36
+ :aliyun_oss_location: <YOUR_OSS_LOACTION>,
37
+ :aliyun_oss_bucket: <YOUR_OSS_BUCKET>
38
+ ```
39
+
40
+ ### Connecting to OSS
41
+ ```ruby
42
+ conn = Fog::Storage[:aliyun]
43
+ ```
44
+
45
+ If you haven't modified your default fog configuration file or you don't want to use it, you can load your credentials by this way:
46
+ ```ruby
47
+ opt = {
48
+ :provider => 'aliyun',
49
+ :aliyun_accesskey_id => <YOUR_ACCESS_KEY_ID>,
50
+ :aliyun_accesskey_secret => <YOUR_SECRET_ACCESS_KEY>,
51
+ :aliyun_oss_endpoint => <YOUR_OSS_ENDPOINT>,
52
+ :aliyun_oss_location => <YOUR_OSS_LOACTION>,
53
+ :aliyun_oss_bucket => <YOUR_OSS_BUCKET>,
54
+ }
55
+ conn = Fog::Storage.new(opt)
56
+ ```
57
+
58
+ ## Fog::Aliyun Abstractions
59
+
60
+ Fog::Aliyun provides both a **model** and **request** abstraction. The request abstraction provides the most efficient interface and the model abstraction wraps the request abstraction to provide a convenient `ActiveModel` like interface.
61
+
62
+ ### Request Layer
63
+ The Fog::Storage object supports a number of methods that wrap individual HTTP requests to the OSS API.
64
+
65
+ To see a list of requests supported by the storage service:
66
+
67
+ conn.requests
68
+
69
+ This returns:
70
+ ```
71
+ [[nil, :copy_object], [nil, :delete_bucket], [nil, :delete_object], [nil, :get_bucket], [nil, :get_object], [nil, :get_object_http_url], [nil, :get_object_https_url], [nil, :head_object], [nil, :put_bucket], [nil, :put_object], [nil, :list_buckets], [nil, :list_objects], [nil, :get_containers], [nil, :get_container], [nil, :delete_container], [nil, :put_container]]
72
+ ```
73
+
74
+ #### Example Requests(list_buckets)
75
+ To request all of buckets:
76
+
77
+ ```ruby
78
+ conn.list_buckets
79
+ ```
80
+
81
+ And this returns like the flowing;
82
+ ```
83
+ [{"Location"=>"oss-cn-beijing", "Name"=>"dt1", "CreationDate"=>"2015-07-30T08:38:02.000Z"}, {"Location"=>"oss-cn-shenzhen", "Name"=>"ruby1", "CreationDate"=>"2015-07-30T02:22:34.000Z"}, {"Location"=>"oss-cn-qingdao", "Name"=>"yuanhang123", "CreationDate"=>"2015-05-18T03:06:31.000Z"}]
84
+ ```
85
+
86
+ You can also request in this way;
87
+ ```ruby
88
+ conn.list_buckets(:prefix=>"pre")
89
+ ```
90
+
91
+ Here is a summary of the optional parameters:
92
+ <table>
93
+ <tr>
94
+ <th>Parameters</th>
95
+ <th>Description</th>
96
+ </tr>
97
+ <tr>
98
+ <td>:prefix</td>
99
+ <td>
100
+ The bucket name of the results must start with 'prefix'.It won't filter prefix information if not set<br>
101
+ Data Types: String<br>
102
+ Defaults:none
103
+ </td>
104
+ </tr>
105
+ <tr>
106
+ <td>:marker</td>
107
+ <td>
108
+ The result will start from the marker alphabetically.It wil start from the first if not set.<br>
109
+ Data Types: String<br>
110
+ Defaults: none
111
+ </tr>
112
+ <tr>
113
+ <td>:maxKeys</td>
114
+ <td>
115
+ Set the max number of the results. It will set to 100 if not set. The max value of maxKeys is 1000.<br>
116
+ Data Types: String<br>
117
+ Defaults: 100
118
+ </td>
119
+ </tr>
120
+ </table>
121
+
122
+ To learn more about `Fog::Aliyun` request methods, you can refer to our source code. To learn more about OSS API, refer to [AliYun OSS API](https://docs.aliyun.com/?spm=5176.383663.9.2.jpghde#/pub/oss/api-reference/abstract).
123
+
124
+ ### Model Layer
125
+ Fog models behave in a manner similar to `ActiveModel`. Models will generally respond to `create`, `save`, `destroy`, `reload` and `attributes` methods. Additionally, fog will automatically create attribute accessors.
126
+
127
+ Here is a summary of common model methods:
128
+
129
+ <table>
130
+ <tr>
131
+ <th>Method</th>
132
+ <th>Description</th>
133
+ </tr>
134
+ <tr>
135
+ <td>create</td>
136
+ <td>
137
+ Accepts hash of attributes and creates object.<br>
138
+ Note: creation is a non-blocking call and you will be required to wait for a valid state before using resulting object.
139
+ </td>
140
+ </tr>
141
+ <tr>
142
+ <td>save</td>
143
+ <td>Saves object.<br>
144
+ Note: not all objects support updating object.</td>
145
+ </tr>
146
+ <tr>
147
+ <td>destroy</td>
148
+ <td>
149
+ Destroys object.<br>
150
+ Note: this is a non-blocking call and object deletion might not be instantaneous.
151
+ </td>
152
+ <tr>
153
+ <td>reload</td>
154
+ <td>Updates object with latest state from service.</td>
155
+ <tr>
156
+ <td>attributes</td>
157
+ <td>Returns a hash containing the list of model attributes and values.</td>
158
+ </tr>
159
+ <td>identity</td>
160
+ <td>
161
+ Returns the identity of the object.<br>
162
+ Note: This might not always be equal to object.id.
163
+ </td>
164
+ </tr>
165
+ </table>
166
+
167
+ The remainder of this document details the model abstraction.
168
+
169
+ **Note:** Fog sometimes refers to OSS containers as directories.
170
+
171
+ ## List Directories
172
+
173
+ To retrieve a list of directories:
174
+
175
+ ```ruby
176
+ dirs = conn.directories
177
+ ```
178
+
179
+ This returns a collection of `Fog::Storage::Aliyun::Directory` models:
180
+
181
+ ## Get Directory
182
+
183
+ To retrieve a specific directory:
184
+
185
+ ```ruby
186
+ dir = dirs.get "dir"
187
+ ```
188
+
189
+ This returns a `Fog::Storage::Aliyun::Directory` instance:
190
+
191
+ ## Create Directory
192
+
193
+ To create a directory:
194
+
195
+ ```ruby
196
+ dirs.create :key => 'backups'
197
+ ```
198
+
199
+ ## Delete Directory
200
+
201
+ To delete a directory:
202
+
203
+ ```ruby
204
+ directory.destroy
205
+ ```
206
+
207
+ **Note**: Directory must be empty before it can be deleted.
208
+
209
+
210
+ ## Directory URL
211
+
212
+ To get a directory's URL:
213
+
214
+ ```ruby
215
+ directory.public_url
216
+ ```
217
+
218
+ ## List Files
219
+
220
+ To list files in a directory:
221
+
222
+ ```ruby
223
+ directory.files
224
+ ```
225
+
226
+ **Note**: File contents is not downloaded until `body` attribute is called.
227
+
228
+ ## Upload Files
229
+
230
+ To upload a file into a directory:
231
+
232
+ ```ruby
233
+ file = directory.files.create :key => 'space.jpg', :body => File.open "space.jpg"
234
+ ```
235
+
236
+ **Note**: For files larger than 5 GB please refer to the [Upload Large Files](#upload_large_files) section.
237
+
238
+
239
+ ## Upload Large Files
240
+
241
+ OSS requires files larger than 5 GB (the OSS default limit) to be uploaded into segments along with an accompanying manifest file. All of the segments must be uploaded to the same container.
242
+
243
+ Segmented files are downloaded like ordinary files. See [Download Files](#download-files) section for more information.
244
+
245
+ ## Download Files
246
+
247
+ The most efficient way to download files from a private or public directory is as follows:
248
+
249
+ ```ruby
250
+ File.open('downloaded-file.jpg', 'w') do | f |
251
+ directory.files.get("my_big_file.jpg") do | data, remaining, content_length |
252
+ f.syswrite data
253
+ end
254
+ end
255
+ ```
256
+
257
+ This will download and save the file.
258
+
259
+ **Note**: The `body` attribute of file will be empty if a file has been downloaded using this method.
260
+
261
+ If a file object has already been loaded into memory, you can save it as follows:
262
+
263
+ ```ruby
264
+ File.open('germany.jpg', 'w') {|f| f.write(file_object.body) }
265
+ ```
266
+
267
+ **Note**: This method is more memory intensive as the entire object is loaded into memory before saving the file as in the example above.
268
+
269
+
270
+ ## File URL
271
+
272
+ To get a file's URL:
273
+
274
+ ```ruby
275
+ file.public_url
276
+ ```
277
+
278
+ ## Copy File
279
+
280
+ Cloud Files supports copying files. To copy files into a container named "trip" with a name of "europe.jpg" do the following:
281
+
282
+ ```ruby
283
+ file.copy("trip", "europe.jpg")
284
+ ```
285
+
286
+ To move or rename a file, perform a copy operation and then delete the old file:
287
+
288
+ ```ruby
289
+ file.copy("trip", "germany.jpg")
290
+ file.destroy
291
+ ```
292
+
293
+ ## Delete File
294
+
295
+ To delete a file:
296
+
297
+ ```ruby
298
+ file.destroy
299
+ ```
300
+ ## Development
301
+
302
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
303
+
304
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
305
+
306
+ ## License
307
+
308
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
309
+
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "fog/aliyun"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'fog/aliyun/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "fog-aliyun"
8
+ spec.version = Fog::Aliyun::VERSION
9
+ spec.authors = ["Qinsi Deng, Jianxun Li, Jane Han"]
10
+ spec.email = ["dengqs@dtdream.com"]
11
+
12
+ spec.summary = %q{Fog provider for Aliyun Web Services.}
13
+ spec.description = %q{As a FOG provider, fog-aliyun support aliyun OSS/ECS. It will support more aliyun services later.}
14
+ spec.homepage = "https://github.com/dtdream/fog-aliyun.git"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.10"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rspec", "~> 3.3"
25
+
26
+ spec.add_dependency 'fog-core', '~> 1.27'
27
+ spec.add_dependency 'fog-json', '~> 1.0'
28
+ spec.add_dependency 'ipaddress', '~> 0.8'
29
+ spec.add_dependency 'xml-simple', '~> 1.1'
30
+ end
@@ -0,0 +1,19 @@
1
+ require "fog/core"
2
+ require "fog/json"
3
+ require "fog/aliyun/version"
4
+
5
+ module Fog
6
+ module Compute
7
+ ret = autoload :Aliyun, "fog/aliyun/compute"
8
+ end
9
+
10
+ module Storage
11
+ ret = autoload :Aliyun, "fog/aliyun/storage"
12
+ end
13
+
14
+ module Aliyun
15
+ extend Fog::Provider
16
+ service(:compute, "Compute")
17
+ service(:storage, "Storage")
18
+ end
19
+ end