fog-storm_on_demand 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/.rubocop.yml +20 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +17 -0
- data/CONTRIBUTING.md +18 -0
- data/CONTRIBUTORS.md +15 -0
- data/Gemfile +4 -0
- data/LICENSE.md +20 -0
- data/README.md +38 -0
- data/Rakefile +11 -0
- data/fog-storm_on_demand.gemspec +34 -0
- data/gemfiles/Gemfile.1.9.2- +8 -0
- data/gemfiles/Gemfile.1.9.3+ +7 -0
- data/lib/fog/account/storm_on_demand.rb +51 -0
- data/lib/fog/account/storm_on_demand/models/token.rb +14 -0
- data/lib/fog/account/storm_on_demand/models/tokens.rb +14 -0
- data/lib/fog/account/storm_on_demand/requests/create_token.rb +14 -0
- data/lib/fog/account/storm_on_demand/requests/expire_token.rb +14 -0
- data/lib/fog/billing/storm_on_demand.rb +57 -0
- data/lib/fog/billing/storm_on_demand/models/invoice.rb +19 -0
- data/lib/fog/billing/storm_on_demand/models/invoices.rb +24 -0
- data/lib/fog/billing/storm_on_demand/models/payment.rb +8 -0
- data/lib/fog/billing/storm_on_demand/models/payments.rb +14 -0
- data/lib/fog/billing/storm_on_demand/requests/get_invoice.rb +14 -0
- data/lib/fog/billing/storm_on_demand/requests/list_invoices.rb +14 -0
- data/lib/fog/billing/storm_on_demand/requests/make_payment.rb +14 -0
- data/lib/fog/billing/storm_on_demand/requests/next_invoice.rb +14 -0
- data/lib/fog/bin/storm_on_demand.rb +29 -0
- data/lib/fog/compute/storm_on_demand.rb +115 -0
- data/lib/fog/compute/storm_on_demand/models/config.rb +31 -0
- data/lib/fog/compute/storm_on_demand/models/configs.rb +19 -0
- data/lib/fog/compute/storm_on_demand/models/image.rb +35 -0
- data/lib/fog/compute/storm_on_demand/models/images.rb +24 -0
- data/lib/fog/compute/storm_on_demand/models/notification.rb +25 -0
- data/lib/fog/compute/storm_on_demand/models/notifications.rb +24 -0
- data/lib/fog/compute/storm_on_demand/models/product.rb +31 -0
- data/lib/fog/compute/storm_on_demand/models/products.rb +22 -0
- data/lib/fog/compute/storm_on_demand/models/server.rb +87 -0
- data/lib/fog/compute/storm_on_demand/models/servers.rb +24 -0
- data/lib/fog/compute/storm_on_demand/models/template.rb +20 -0
- data/lib/fog/compute/storm_on_demand/models/templates.rb +19 -0
- data/lib/fog/compute/storm_on_demand/requests/clone_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/create_image.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/create_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/current_notifications.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/delete_image.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/delete_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_config_details.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_image_details.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_notification.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_product.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_product_code.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_product_price.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_product_starting_price.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_template_details.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_configs.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_images.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_notifications.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_products.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_servers.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_templates.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/reboot_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/resize_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/resolve_notification.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/restore_image.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/restore_template.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/server_history.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/server_status.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/shutdown_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/start_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/update_image.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/update_server.rb +14 -0
- data/lib/fog/dns/storm_on_demand.rb +82 -0
- data/lib/fog/dns/storm_on_demand/models/domain.rb +25 -0
- data/lib/fog/dns/storm_on_demand/models/domains.rb +14 -0
- data/lib/fog/dns/storm_on_demand/models/record.rb +55 -0
- data/lib/fog/dns/storm_on_demand/models/records.rb +24 -0
- data/lib/fog/dns/storm_on_demand/models/reverse.rb +8 -0
- data/lib/fog/dns/storm_on_demand/models/reverses.rb +17 -0
- data/lib/fog/dns/storm_on_demand/models/zone.rb +32 -0
- data/lib/fog/dns/storm_on_demand/models/zones.rb +24 -0
- data/lib/fog/dns/storm_on_demand/requests/check_zone_delegation.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/create_record.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/create_record_region.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/create_zone.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/delete_record.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/delete_record_region.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/delete_reverse.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/delete_zone.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/get_record.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/get_zone.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/list_domains.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/list_records.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/list_zones.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/renew_domain.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/update_record.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/update_record_region.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/update_reverse.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/update_zone.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand.rb +65 -0
- data/lib/fog/monitoring/storm_on_demand/models/bandwidth.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/models/bandwidths.rb +18 -0
- data/lib/fog/monitoring/storm_on_demand/models/load.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/models/loads.rb +18 -0
- data/lib/fog/monitoring/storm_on_demand/models/monitor_service.rb +13 -0
- data/lib/fog/monitoring/storm_on_demand/models/monitor_services.rb +27 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_bandwidth_graph.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_bandwidth_stats.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_load_graph.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_load_stats.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_service.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_service_status.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/monitoring_ips.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/update_service.rb +14 -0
- data/lib/fog/network/storm_on_demand.rb +115 -0
- data/lib/fog/network/storm_on_demand/models/balancer.rb +50 -0
- data/lib/fog/network/storm_on_demand/models/balancers.rb +37 -0
- data/lib/fog/network/storm_on_demand/models/firewall.rb +12 -0
- data/lib/fog/network/storm_on_demand/models/firewalls.rb +28 -0
- data/lib/fog/network/storm_on_demand/models/network_ip.rb +15 -0
- data/lib/fog/network/storm_on_demand/models/network_ips.rb +43 -0
- data/lib/fog/network/storm_on_demand/models/pool.rb +24 -0
- data/lib/fog/network/storm_on_demand/models/pools.rb +23 -0
- data/lib/fog/network/storm_on_demand/models/private_ip.rb +9 -0
- data/lib/fog/network/storm_on_demand/models/private_ips.rb +33 -0
- data/lib/fog/network/storm_on_demand/models/ruleset.rb +19 -0
- data/lib/fog/network/storm_on_demand/models/rulesets.rb +24 -0
- data/lib/fog/network/storm_on_demand/models/zone.rb +19 -0
- data/lib/fog/network/storm_on_demand/models/zones.rb +19 -0
- data/lib/fog/network/storm_on_demand/requests/add_balancer_node.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/add_balancer_service.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/add_ip_to_server.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/attach_server_to_private_ip.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/check_balancer_available.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/check_server_attached.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/create_balancer.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/create_pool.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/create_ruleset.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/delete_balancer.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/delete_pool.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/detach_server_from_private_ip.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_assignments.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_balancer_details.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_balancer_possible_nodes.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_balancer_strategies.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_firewall.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_firewall_basic_options.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_firewall_rules.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_ip_details.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_pool.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_private_ip.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_ruleset.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_zone.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_balancers.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_ip_public_accounts.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_network_ips.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_network_public_ips.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_private_ips.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_rulesets.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_zones.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/remove_balancer_node.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/remove_balancer_service.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/remove_ip_from_server.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/request_new_ips.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/set_default_zone.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/update_balancer.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/update_firewall.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/update_pool.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/update_ruleset.rb +14 -0
- data/lib/fog/storage/storm_on_demand.rb +62 -0
- data/lib/fog/storage/storm_on_demand/models/cluster.rb +11 -0
- data/lib/fog/storage/storm_on_demand/models/clusters.rb +14 -0
- data/lib/fog/storage/storm_on_demand/models/volume.rb +45 -0
- data/lib/fog/storage/storm_on_demand/models/volumes.rb +24 -0
- data/lib/fog/storage/storm_on_demand/requests/attach_volume_to_server.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/create_volume.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/delete_volume.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/detach_volume_from_server.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/get_volume.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/list_clusters.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/list_volumes.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/resize_volume.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/update_volume.rb +14 -0
- data/lib/fog/storm_on_demand.rb +57 -0
- data/lib/fog/storm_on_demand/shared.rb +53 -0
- data/lib/fog/storm_on_demand/version.rb +5 -0
- data/lib/fog/support/storm_on_demand.rb +63 -0
- data/lib/fog/support/storm_on_demand/models/alert.rb +10 -0
- data/lib/fog/support/storm_on_demand/models/alerts.rb +14 -0
- data/lib/fog/support/storm_on_demand/models/ticket.rb +64 -0
- data/lib/fog/support/storm_on_demand/models/tickets.rb +27 -0
- data/lib/fog/support/storm_on_demand/requests/add_feedback.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/add_transaction_feedback.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/authenticate.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/close_ticket.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/create_ticket.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/get_active_alert.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/get_ticket_details.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/list_ticket_types.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/list_tickets.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/reopen_ticket.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/reply_ticket.rb +14 -0
- data/lib/fog/vpn/storm_on_demand.rb +53 -0
- data/lib/fog/vpn/storm_on_demand/models/vpn.rb +22 -0
- data/lib/fog/vpn/storm_on_demand/models/vpns.rb +23 -0
- data/lib/fog/vpn/storm_on_demand/requests/create_vpn.rb +14 -0
- data/lib/fog/vpn/storm_on_demand/requests/get_vpn.rb +14 -0
- data/lib/fog/vpn/storm_on_demand/requests/list_vpn_users.rb +14 -0
- data/lib/fog/vpn/storm_on_demand/requests/update_vpn.rb +14 -0
- data/spec/minitest_helper.rb +31 -0
- metadata +371 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 689fbba47e99cc8dce3f482f0afe273313741d3f
|
4
|
+
data.tar.gz: 601f51a74ae3de6daee65e7bee70aa74654d221a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3bd0a0ce53ac6943e48298f2f96599ff8f2ee2dcc1242350946bbe54c8c952dea946282109b2e2dee84103b731564c07d1a9aa47c5797a1d2226cc6f1bd4c399
|
7
|
+
data.tar.gz: d153b373eede12378156853b92c1419428e14703ced0247de8cdbd796ff426218740c0e756f762ae94547cc75ccf79240dfe5eb32332481275c3997fd7020a3e
|
data/.gitignore
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
23
|
+
gemfiles/*.lock
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Metrics/LineLength:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Style/EachWithObject:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Style/Encoding:
|
8
|
+
EnforcedStyle: when_needed
|
9
|
+
|
10
|
+
Style/FormatString:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/HashSyntax:
|
14
|
+
EnforcedStyle: hash_rockets
|
15
|
+
|
16
|
+
Style/SignalException:
|
17
|
+
EnforcedStyle: only_raise
|
18
|
+
|
19
|
+
Style/StringLiterals:
|
20
|
+
EnforcedStyle: double_quotes
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
fog-storm_on_demand
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.5
|
data/.travis.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
matrix:
|
2
|
+
include:
|
3
|
+
- rvm: 1.8.7
|
4
|
+
gemfile: gemfiles/Gemfile.1.9.2-
|
5
|
+
- rvm: 1.9.2
|
6
|
+
gemfile: gemfiles/Gemfile.1.9.2-
|
7
|
+
- rvm: 1.9.3
|
8
|
+
gemfile: gemfiles/Gemfile.1.9.3+
|
9
|
+
- rvm: 2.0.0
|
10
|
+
gemfile: gemfiles/Gemfile.1.9.3+
|
11
|
+
- rvm: 2.1.4
|
12
|
+
gemfile: gemfiles/Gemfile.1.9.3+
|
13
|
+
env: COVERAGE=true
|
14
|
+
- rvm: ree
|
15
|
+
gemfile: gemfiles/Gemfile.1.9.2-
|
16
|
+
- rvm: jruby
|
17
|
+
gemfile: gemfiles/Gemfile.1.9.3+
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
## Getting Involved
|
2
|
+
|
3
|
+
New contributors are always welcome, when it doubt please ask questions. We strive to be an open and welcoming community. Please be nice to one another.
|
4
|
+
|
5
|
+
### Coding
|
6
|
+
|
7
|
+
* Pick a task:
|
8
|
+
* Offer feedback on open [pull requests](https://github.com/fog/fog-storm_on_demand/pulls).
|
9
|
+
* Review open [issues](https://github.com/fog/fog-storm_on_demand/issues) for things to help on.
|
10
|
+
* [Create an issue](https://github.com/fog/fog-storm_on_demand/issues/new) to start a discussion on additions or features.
|
11
|
+
* Fork the project, add your changes and tests to cover them in a topic branch.
|
12
|
+
* Commit your changes and rebase against `fog/fog-storm_on_demand` to ensure everything is up to date.
|
13
|
+
* [Submit a pull request](https://github.com/fog/fog-storm_on_demand/compare/)
|
14
|
+
|
15
|
+
### Non-Coding
|
16
|
+
|
17
|
+
* Offer feedback on open [issues](https://github.com/fog/fog-storm_on_demand/issues).
|
18
|
+
* Organize or volunteer at events.
|
data/CONTRIBUTORS.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
* Alan Ivey <alanivey@gmail.com>
|
2
|
+
* Carlos Sanchez <csanchez@maestrodev.com>
|
3
|
+
* Edward Muller <edward@heroku.com>
|
4
|
+
* Eric Wong <ericsyw@gmail.com>
|
5
|
+
* James Herdman <james.herdman@me.com>
|
6
|
+
* Josh Blancett <joshblancett@gmail.com>
|
7
|
+
* Kevin Menard <nirvdrum@gmail.com>
|
8
|
+
* Kyle Rames <kyle.rames@rackspace.com>
|
9
|
+
* Lance Ivy <lance@cainlevy.net>
|
10
|
+
* Paul Thornthwaite <tokengeek@gmail.com>
|
11
|
+
* Paulo Henrique Lopes Ribeiro <plribeiro3000@gmail.com>
|
12
|
+
* Paul Thornthwaite <paul@brightbox.co.uk>
|
13
|
+
* seeingidog <ian@ruby-code.com>
|
14
|
+
* Steve Smith <github@scsworld.co.uk>
|
15
|
+
* Wesley Beary <geemus+github@gmail.com>
|
data/Gemfile
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014-2014 [CONTRIBUTORS.md](https://github.com/fog/fog-storm_on_demand/blob/master/CONTRIBUTORS.md)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
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, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Fog::StormOnDemand
|
2
|
+
|
3
|
+
![Gem Version](https://badge.fury.io/rb/fog-storm_on_demand.svg) [![Build Status](https://travis-ci.org/fog/fog-storm_on_demand.svg?branch=master)](https://travis-ci.org/fog/fog-storm_on_demand) [![Dependency Status](https://gemnasium.com/fog/fog-storm_on_demand.svg)](https://gemnasium.com/fog/fog-storm_on_demand) [![Coverage Status](https://img.shields.io/coveralls/fog/fog-storm_on_demand.svg)](https://coveralls.io/r/fog/fog-storm_on_demand?branch=master) [![Code Climate](https://codeclimate.com/github/fog/fog-storm_on_demand.png)](https://codeclimate.com/github/fog/fog-storm_on_demand)
|
4
|
+
|
5
|
+
Module for the 'fog' gem to support StormOnDemand
|
6
|
+
|
7
|
+
## Help Needed
|
8
|
+
|
9
|
+
This gem needs a maintainer. If you want to work on it, please contact
|
10
|
+
[@geemus](mailto:geemus@gmail.com) or [@plribeiro3000](mailto:plribeiro3000@gmail.com)
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
Add this line to your application's Gemfile:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
gem 'fog-storm_on_demand'
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle
|
23
|
+
|
24
|
+
Or install it yourself as:
|
25
|
+
|
26
|
+
$ gem install fog-storm_on_demand
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
TODO: Write usage instructions here
|
31
|
+
|
32
|
+
## Contributing
|
33
|
+
|
34
|
+
1. Fork it ( https://github.com/fog/fog-storm_on_demand/fork )
|
35
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
36
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
37
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
38
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'fog/storm_on_demand/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "fog-storm_on_demand"
|
8
|
+
spec.version = Fog::StormOnDemand::VERSION
|
9
|
+
spec.authors = ["Paulo Henrique Lopes Ribeiro"]
|
10
|
+
spec.email = ["plribeiro3000@gmail.com"]
|
11
|
+
spec.summary = %q{Module for the 'fog' gem to support StormOnDemand.}
|
12
|
+
spec.description = %q{This library can be used as a module for `fog` or as standalone provider
|
13
|
+
to use the StormOnDemand in applications.}
|
14
|
+
spec.homepage = ""
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0")
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency "fog-core"
|
23
|
+
spec.add_dependency "fog-json"
|
24
|
+
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "minitest"
|
27
|
+
spec.add_development_dependency "turn"
|
28
|
+
spec.add_development_dependency "pry"
|
29
|
+
|
30
|
+
if RUBY_VERSION.to_f > 1.9
|
31
|
+
spec.add_development_dependency "coveralls"
|
32
|
+
spec.add_development_dependency "rubocop"
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module Fog
|
2
|
+
module Account
|
3
|
+
class StormOnDemand < Fog::Service
|
4
|
+
autoload :Token, 'fog/account/storm_on_demand/models/token'
|
5
|
+
autoload :Tokens, 'fog/account/storm_on_demand/models/tokens'
|
6
|
+
|
7
|
+
requires :storm_on_demand_username, :storm_on_demand_password
|
8
|
+
recognizes :storm_on_demand_auth_url
|
9
|
+
|
10
|
+
model_path 'fog/account/storm_on_demand/models'
|
11
|
+
model :token
|
12
|
+
collection :tokens
|
13
|
+
|
14
|
+
request_path 'fog/account/storm_on_demand/requests'
|
15
|
+
request :create_token
|
16
|
+
request :expire_token
|
17
|
+
|
18
|
+
class Mock
|
19
|
+
def self.data
|
20
|
+
@data ||= Hash.new
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.reset
|
24
|
+
@data = nil
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.reset_data(keys=data.keys)
|
28
|
+
for key in [*keys]
|
29
|
+
data.delete(key)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def initialize(options = {})
|
34
|
+
@storm_on_demand_username = options[:storm_on_demand_username]
|
35
|
+
end
|
36
|
+
|
37
|
+
def data
|
38
|
+
self.class.data[@storm_on_demand_username]
|
39
|
+
end
|
40
|
+
|
41
|
+
def reset_data
|
42
|
+
self.class.data.delete(@storm_on_demand_username)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
class Real
|
47
|
+
include Fog::StormOnDemand::Shared
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module Fog
|
2
|
+
module Billing
|
3
|
+
class StormOnDemand < Fog::Service
|
4
|
+
autoload :Invoice, 'fog/billing/storm_on_demand/models/invoice'
|
5
|
+
autoload :Invoices, 'fog/billing/storm_on_demand/models/invoices'
|
6
|
+
autoload :Payment, 'fog/billing/storm_on_demand/models/payment'
|
7
|
+
autoload :Payments, 'fog/billing/storm_on_demand/models/payments'
|
8
|
+
|
9
|
+
requires :storm_on_demand_username, :storm_on_demand_password
|
10
|
+
recognizes :storm_on_demand_auth_url
|
11
|
+
|
12
|
+
model_path 'fog/billing/storm_on_demand/models'
|
13
|
+
model :invoice
|
14
|
+
collection :invoices
|
15
|
+
model :payment
|
16
|
+
collection :payments
|
17
|
+
|
18
|
+
request_path 'fog/billing/storm_on_demand/requests'
|
19
|
+
request :list_invoices
|
20
|
+
request :get_invoice
|
21
|
+
request :next_invoice
|
22
|
+
request :make_payment
|
23
|
+
|
24
|
+
class Mock
|
25
|
+
def self.data
|
26
|
+
@data ||= Hash.new
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.reset
|
30
|
+
@data = nil
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.reset_data(keys=data.keys)
|
34
|
+
for key in [*keys]
|
35
|
+
data.delete(key)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def initialize(options = {})
|
40
|
+
@storm_on_demand_username = options[:storm_on_demand_username]
|
41
|
+
end
|
42
|
+
|
43
|
+
def data
|
44
|
+
self.class.data[@storm_on_demand_username]
|
45
|
+
end
|
46
|
+
|
47
|
+
def reset_data
|
48
|
+
self.class.data.delete(@storm_on_demand_username)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
class Real
|
53
|
+
include Fog::StormOnDemand::Shared
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Fog
|
2
|
+
module Billing
|
3
|
+
class StormOnDemand
|
4
|
+
class Invoice < Fog::Model
|
5
|
+
identity :id
|
6
|
+
attribute :accnt
|
7
|
+
attribute :bill_date
|
8
|
+
attribute :due
|
9
|
+
attribute :end_date
|
10
|
+
attribute :lineitem_groups
|
11
|
+
attribute :payments
|
12
|
+
attribute :start_date
|
13
|
+
attribute :status
|
14
|
+
attribute :total
|
15
|
+
attribute :type
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|