bbcloud 0.11.2 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -2
- data/Gemfile +3 -0
- data/README +11 -1
- data/README.rdoc +11 -1
- data/Rakefile +12 -0
- data/bbcloud.gemspec +10 -10
- data/bin/brightbox-accounts +7 -2
- data/bin/brightbox-cloudips +7 -2
- data/bin/brightbox-config +7 -2
- data/bin/brightbox-images +7 -2
- data/bin/brightbox-lbs +7 -2
- data/bin/brightbox-servers +7 -2
- data/bin/brightbox-types +7 -2
- data/bin/brightbox-users +7 -2
- data/bin/brightbox-zones +7 -2
- data/lib/bbcloud.rb +43 -0
- data/lib/bbcloud/accounts.rb +5 -3
- data/lib/bbcloud/command_generator.rb +50 -0
- data/lib/bbcloud/commands/accounts-list.rb +13 -11
- data/lib/bbcloud/commands/accounts-reset-ftp-password.rb +26 -23
- data/lib/bbcloud/commands/accounts-show.rb +20 -16
- data/lib/bbcloud/commands/cloudips-create.rb +16 -14
- data/lib/bbcloud/commands/cloudips-destroy.rb +29 -26
- data/lib/bbcloud/commands/cloudips-list.rb +13 -11
- data/lib/bbcloud/commands/cloudips-map.rb +48 -46
- data/lib/bbcloud/commands/cloudips-show.rb +15 -12
- data/lib/bbcloud/commands/cloudips-unmap.rb +28 -25
- data/lib/bbcloud/commands/config-client-add.rb +33 -31
- data/lib/bbcloud/commands/config-client-default.rb +18 -16
- data/lib/bbcloud/commands/config-client-list.rb +19 -16
- data/lib/bbcloud/commands/config-client-remove.rb +18 -16
- data/lib/bbcloud/commands/images-destroy.rb +18 -16
- data/lib/bbcloud/commands/images-list.rb +20 -18
- data/lib/bbcloud/commands/images-register.rb +21 -19
- data/lib/bbcloud/commands/images-show.rb +17 -15
- data/lib/bbcloud/commands/lbs-add-nodes.rb +15 -13
- data/lib/bbcloud/commands/lbs-create.rb +65 -63
- data/lib/bbcloud/commands/lbs-destroy.rb +13 -11
- data/lib/bbcloud/commands/lbs-list.rb +13 -11
- data/lib/bbcloud/commands/lbs-remove-nodes.rb +15 -13
- data/lib/bbcloud/commands/lbs-show.rb +15 -13
- data/lib/bbcloud/commands/lbs-update.rb +59 -57
- data/lib/bbcloud/commands/servers-activate-cloud.rb +18 -16
- data/lib/bbcloud/commands/servers-create.rb +80 -77
- data/lib/bbcloud/commands/servers-destroy.rb +17 -15
- data/lib/bbcloud/commands/servers-list.rb +14 -14
- data/lib/bbcloud/commands/servers-show.rb +39 -37
- data/lib/bbcloud/commands/servers-shutdown.rb +14 -12
- data/lib/bbcloud/commands/servers-snapshot.rb +14 -12
- data/lib/bbcloud/commands/servers-start.rb +15 -13
- data/lib/bbcloud/commands/servers-stop.rb +14 -12
- data/lib/bbcloud/commands/types-list.rb +13 -11
- data/lib/bbcloud/commands/types-show.rb +18 -16
- data/lib/bbcloud/commands/users-list.rb +13 -11
- data/lib/bbcloud/commands/users-show.rb +17 -15
- data/lib/bbcloud/commands/users-update.rb +27 -25
- data/lib/bbcloud/commands/zones-list.rb +13 -11
- data/lib/bbcloud/config.rb +125 -111
- data/lib/bbcloud/error_parser.rb +34 -0
- data/lib/bbcloud/fog_extensions.rb +19 -0
- data/lib/bbcloud/gli_global_hooks.rb +56 -0
- data/lib/bbcloud/logging.rb +40 -0
- data/lib/bbcloud/ruby_core_ext.rb +9 -0
- data/lib/bbcloud/servers.rb +7 -2
- data/lib/bbcloud/tables.rb +78 -73
- data/lib/bbcloud/vendor/gli/.gitignore +10 -0
- data/lib/bbcloud/vendor/gli/.rvmrc +1 -0
- data/lib/bbcloud/vendor/gli/Gemfile +5 -0
- data/lib/bbcloud/vendor/gli/LICENSE.txt +201 -0
- data/lib/bbcloud/vendor/gli/README.rdoc +54 -0
- data/lib/bbcloud/vendor/gli/Rakefile +84 -0
- data/lib/bbcloud/vendor/gli/bin/gli +72 -0
- data/lib/bbcloud/vendor/gli/bin/report_on_rake_results +10 -0
- data/lib/bbcloud/vendor/gli/bin/test_all_rubies.sh +2 -0
- data/lib/bbcloud/vendor/gli/features/gli_executable.feature +88 -0
- data/lib/bbcloud/vendor/gli/features/gli_init.feature +122 -0
- data/lib/bbcloud/vendor/gli/features/step_definitions/gli_executable_steps.rb +12 -0
- data/lib/bbcloud/vendor/gli/features/step_definitions/gli_init_steps.rb +4 -0
- data/lib/bbcloud/vendor/gli/features/support/env.rb +21 -0
- data/lib/bbcloud/vendor/gli/gli.cheat +80 -0
- data/lib/bbcloud/vendor/gli/gli.gemspec +46 -0
- data/lib/bbcloud/vendor/gli/gli.rdoc +51 -0
- data/lib/bbcloud/vendor/gli/lib/gli.rb +560 -0
- data/lib/bbcloud/vendor/gli/lib/gli/command.rb +124 -0
- data/lib/bbcloud/vendor/gli/lib/gli/command_line_token.rb +58 -0
- data/lib/bbcloud/vendor/gli/lib/gli/copy_options_to_aliases.rb +33 -0
- data/lib/bbcloud/vendor/gli/lib/gli/exceptions.rb +45 -0
- data/lib/bbcloud/vendor/gli/lib/gli/flag.rb +67 -0
- data/lib/bbcloud/vendor/gli/lib/gli/options.rb +19 -0
- data/lib/bbcloud/vendor/gli/lib/gli/switch.rb +63 -0
- data/lib/bbcloud/vendor/gli/lib/gli/terminal.rb +79 -0
- data/lib/bbcloud/vendor/gli/lib/gli_version.rb +3 -0
- data/lib/bbcloud/vendor/gli/lib/support/help.rb +180 -0
- data/lib/bbcloud/vendor/gli/lib/support/initconfig.rb +34 -0
- data/lib/bbcloud/vendor/gli/lib/support/rdoc.rb +119 -0
- data/lib/bbcloud/vendor/gli/lib/support/scaffold.rb +284 -0
- data/lib/bbcloud/vendor/gli/test/config.yaml +9 -0
- data/lib/bbcloud/vendor/gli/test/gli.reek +116 -0
- data/lib/bbcloud/vendor/gli/test/roodi.yaml +9 -0
- data/lib/bbcloud/vendor/gli/test/tc_command.rb +329 -0
- data/lib/bbcloud/vendor/gli/test/tc_flag.rb +67 -0
- data/lib/bbcloud/vendor/gli/test/tc_gli.rb +429 -0
- data/lib/bbcloud/vendor/gli/test/tc_options.rb +31 -0
- data/lib/bbcloud/vendor/gli/test/tc_parsing.rb +279 -0
- data/lib/bbcloud/vendor/gli/test/tc_switch.rb +80 -0
- data/lib/bbcloud/vendor/gli/test/tc_terminal.rb +91 -0
- data/lib/bbcloud/version.rb +1 -1
- data/pkg/bbcloud-0.12.0.gem +0 -0
- data/spec/fixtures/vcr_cassettes/server_list.yml +117 -0
- data/spec/servers_spec.rb +36 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/support/common_helpers.rb +47 -0
- metadata +129 -135
- data/lib/bbcloud/cli.rb +0 -160
- data/lib/bbcloud/vendor/fog/lib/fog.rb +0 -14
- data/lib/bbcloud/vendor/fog/lib/fog/compute.rb +0 -43
- data/lib/bbcloud/vendor/fog/lib/fog/compute/brightbox.rb +0 -162
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/account.rb +0 -51
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/cloud_ip.rb +0 -47
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/cloud_ips.rb +0 -34
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/flavor.rb +0 -33
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/flavors.rb +0 -28
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/image.rb +0 -56
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/images.rb +0 -28
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/load_balancer.rb +0 -50
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/load_balancers.rb +0 -28
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/server.rb +0 -108
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/servers.rb +0 -29
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/user.rb +0 -39
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/users.rb +0 -29
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/zone.rb +0 -21
- data/lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/zones.rb +0 -29
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/activate_console_server.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/add_listeners_load_balancer.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/create_api_client.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/create_cloud_ip.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/create_image.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/create_load_balancer.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/create_server.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/destroy_api_client.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/destroy_cloud_ip.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/destroy_image.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/destroy_load_balancer.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/destroy_server.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_account.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_api_client.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_cloud_ip.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_image.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_interface.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_load_balancer.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_server.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_server_type.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_user.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/get_zone.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/list_api_clients.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/list_cloud_ips.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/list_images.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/list_load_balancers.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/list_server_types.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/list_servers.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/list_users.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/list_zones.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/map_cloud_ip.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/remove_listeners_load_balancer.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/remove_nodes_load_balancer.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/reset_ftp_password_account.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/resize_server.rb +0 -19
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/shutdown_server.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/snapshot_server.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/start_server.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/stop_server.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/unmap_cloud_ip.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/update_account.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/update_api_client.rb +0 -21
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/update_image.rb +0 -21
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/update_load_balancer.rb +0 -21
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/update_server.rb +0 -21
- data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/update_user.rb +0 -21
- data/lib/bbcloud/vendor/fog/lib/fog/core.rb +0 -32
- data/lib/bbcloud/vendor/fog/lib/fog/core/attributes.rb +0 -178
- data/lib/bbcloud/vendor/fog/lib/fog/core/collection.rb +0 -127
- data/lib/bbcloud/vendor/fog/lib/fog/core/connection.rb +0 -35
- data/lib/bbcloud/vendor/fog/lib/fog/core/credentials.rb +0 -92
- data/lib/bbcloud/vendor/fog/lib/fog/core/deprecation.rb +0 -23
- data/lib/bbcloud/vendor/fog/lib/fog/core/errors.rb +0 -20
- data/lib/bbcloud/vendor/fog/lib/fog/core/hmac.rb +0 -48
- data/lib/bbcloud/vendor/fog/lib/fog/core/mock.rb +0 -68
- data/lib/bbcloud/vendor/fog/lib/fog/core/model.rb +0 -57
- data/lib/bbcloud/vendor/fog/lib/fog/core/parser.rb +0 -99
- data/lib/bbcloud/vendor/fog/lib/fog/core/provider.rb +0 -18
- data/lib/bbcloud/vendor/fog/lib/fog/core/scp.rb +0 -67
- data/lib/bbcloud/vendor/fog/lib/fog/core/service.rb +0 -175
- data/lib/bbcloud/vendor/fog/lib/fog/core/ssh.rb +0 -120
- data/lib/bbcloud/vendor/fog/lib/fog/core/time.rb +0 -27
- data/lib/bbcloud/vendor/fog/lib/fog/core/wait_for.rb +0 -17
- data/lib/bbcloud/vendor/fog/lib/fog/providers.rb +0 -9
- data/lib/bbcloud/vendor/fog/lib/fog/providers/brightbox.rb +0 -9
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def get_interface(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [200],
|
10
|
-
:method => 'GET',
|
11
|
-
:path => "/1.0/interfaces/#{identifier}",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def get_load_balancer(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [200],
|
10
|
-
:method => 'GET',
|
11
|
-
:path => "/1.0/load_balancers/#{identifier}",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def get_server(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [200],
|
10
|
-
:method => 'GET',
|
11
|
-
:path => "/1.0/servers/#{identifier}",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def get_server_type(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [200],
|
10
|
-
:method => 'GET',
|
11
|
-
:path => "/1.0/server_types/#{identifier}",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def get_user(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [200],
|
10
|
-
:method => 'GET',
|
11
|
-
:path => "/1.0/users/#{identifier}",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def get_zone(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [200],
|
10
|
-
:method => 'GET',
|
11
|
-
:path => "/1.0/zones/#{identifier}",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def list_api_clients(options = {})
|
7
|
-
request(
|
8
|
-
:expects => [200],
|
9
|
-
:method => 'GET',
|
10
|
-
:path => "/1.0/api_clients",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def list_cloud_ips(options = {})
|
7
|
-
request(
|
8
|
-
:expects => [200],
|
9
|
-
:method => 'GET',
|
10
|
-
:path => "/1.0/cloud_ips",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def list_images(options = {})
|
7
|
-
request(
|
8
|
-
:expects => [200],
|
9
|
-
:method => 'GET',
|
10
|
-
:path => "/1.0/images",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def list_load_balancers(options = {})
|
7
|
-
request(
|
8
|
-
:expects => [200],
|
9
|
-
:method => 'GET',
|
10
|
-
:path => "/1.0/load_balancers",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def list_server_types(options = {})
|
7
|
-
request(
|
8
|
-
:expects => [200],
|
9
|
-
:method => 'GET',
|
10
|
-
:path => "/1.0/server_types",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def list_servers(options = {})
|
7
|
-
request(
|
8
|
-
:expects => [200],
|
9
|
-
:method => 'GET',
|
10
|
-
:path => "/1.0/servers",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def list_users(options = {})
|
7
|
-
request(
|
8
|
-
:expects => [200],
|
9
|
-
:method => 'GET',
|
10
|
-
:path => "/1.0/users",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def list_zones(options = {})
|
7
|
-
request(
|
8
|
-
:expects => [200],
|
9
|
-
:method => 'GET',
|
10
|
-
:path => "/1.0/zones",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def map_cloud_ip(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [202],
|
10
|
-
:method => 'POST',
|
11
|
-
:path => "/1.0/cloud_ips/#{identifier}/map",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/remove_listeners_load_balancer.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def remove_listeners_load_balancer(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [202],
|
10
|
-
:method => 'POST',
|
11
|
-
:path => "/1.0/load_balancers/#{identifier}/remove_listeners",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/remove_nodes_load_balancer.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def remove_nodes_load_balancer(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [202],
|
10
|
-
:method => 'POST',
|
11
|
-
:path => "/1.0/load_balancers/#{identifier}/remove_nodes",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
data/lib/bbcloud/vendor/fog/lib/fog/compute/requests/brightbox/reset_ftp_password_account.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def reset_ftp_password_account(options = {})
|
7
|
-
request(
|
8
|
-
:expects => [200],
|
9
|
-
:method => 'POST',
|
10
|
-
:path => "/1.0/account/reset_ftp_password",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def resize_server(identifier, options = {})
|
7
|
-
request(
|
8
|
-
:expects => [202],
|
9
|
-
:method => 'POST',
|
10
|
-
:path => "/1.0/servers/#{identifier}/resize",
|
11
|
-
:headers => {"Content-Type" => "application/json"},
|
12
|
-
:body => options.to_json
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def shutdown_server(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [202],
|
10
|
-
:method => 'POST',
|
11
|
-
:path => "/1.0/servers/#{identifier}/shutdown",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
class Compute
|
4
|
-
class Real
|
5
|
-
|
6
|
-
def snapshot_server(identifier, options = {})
|
7
|
-
return nil if identifier.nil? || identifier == ""
|
8
|
-
request(
|
9
|
-
:expects => [202],
|
10
|
-
:method => 'POST',
|
11
|
-
:path => "/1.0/servers/#{identifier}/snapshot",
|
12
|
-
:headers => {"Content-Type" => "application/json"},
|
13
|
-
:body => options.to_json
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|