brightbox-cli 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/brightbox-cli.gemspec +10 -9
- data/lib/brightbox-cli/commands/servers-activate-console.rb +1 -1
- data/lib/brightbox-cli/commands/types-show.rb +5 -4
- data/lib/brightbox-cli/config.rb +1 -1
- data/lib/brightbox-cli/detailed_server.rb +2 -1
- data/lib/brightbox-cli/gli_global_hooks.rb +1 -8
- data/lib/brightbox-cli/server_groups.rb +4 -0
- data/lib/brightbox-cli/servers.rb +5 -13
- data/lib/brightbox-cli/types.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/.gitignore +1 -0
- data/lib/brightbox-cli/vendor/fog/README.rdoc +1 -1
- data/lib/brightbox-cli/vendor/fog/Rakefile +4 -3
- data/lib/brightbox-cli/vendor/fog/changelog.txt +213 -0
- data/lib/brightbox-cli/vendor/fog/docs/compute/index.markdown +15 -1
- data/lib/brightbox-cli/vendor/fog/docs/index.markdown +1 -1
- data/lib/brightbox-cli/vendor/fog/docs/storage/index.markdown +4 -4
- data/lib/brightbox-cli/vendor/fog/examples/compute_tests.rb +18 -6
- data/lib/brightbox-cli/vendor/fog/examples/dns_tests.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/examples/storage_tests.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/fog.gemspec +4 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws.rb +16 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/auto_scaling.rb +2 -17
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/cloud_formation.rb +1 -16
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/cloud_watch.rb +2 -17
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/compute.rb +10 -21
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/elasticache.rb +1 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/elb.rb +34 -24
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/emr.rb +5 -4
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/iam.rb +16 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/group.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/cloud_watch/metric_statistic.rb +1 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/security_group.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/security_groups.rb +25 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/server.rb +4 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/dns/records.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elb/listener.rb +9 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elb/load_balancer.rb +6 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/directory.rb +21 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/file.rb +19 -5
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/files.rb +4 -4
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_instances.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_security_groups.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/sqs/receive_message.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/rds.rb +41 -18
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/create_security_group.rb +6 -4
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/create_tags.rb +3 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_availability_zones.rb +3 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_security_groups.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_lb_cookie_stickiness_policy.rb +3 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_load_balancer.rb +7 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_load_balancer_listeners.rb +10 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/delete_load_balancer_policy.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/describe_load_balancers.rb +5 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/set_load_balancer_listener_ssl_certificate.rb +27 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/set_load_balancer_policies_of_listener.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/emr/run_job_flow.rb +9 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/add_user_to_group.rb +24 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_access_key.rb +24 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_group.rb +21 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_user.rb +21 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_access_key.rb +17 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_group.rb +19 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_user.rb +17 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_user_policy.rb +16 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_access_keys.rb +21 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_groups.rb +18 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_groups_for_user.rb +24 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_user_policies.rb +18 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_users.rb +17 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/put_user_policy.rb +18 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/remove_user_from_group.rb +19 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/upload_server_certificate.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb +30 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_instance.rb +67 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_security_group.rb +19 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_instance.rb +19 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_security_group.rb +11 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb +56 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_reserved_instances.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_security_groups.rb +44 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/modify_db_instance.rb +26 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/reboot_db_instance.rb +17 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/revoke_db_security_group_ingress.rb +27 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/change_message_visibility.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/delete_message.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/receive_message.rb +13 -14
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/copy_object.rb +14 -6
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/delete_object.rb +73 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket.rb +3 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +95 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket_versioning.rb +32 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object.rb +27 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object_http_url.rb +4 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object_https_url.rb +4 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_bucket_versioning.rb +41 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_bucket_website.rb +17 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_object.rb +25 -9
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/ses.rb +2 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/simpledb.rb +4 -17
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/sns.rb +1 -14
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/sqs.rb +5 -11
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/storage.rb +6 -22
- data/lib/brightbox-cli/vendor/fog/lib/fog/bin.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/bin/aws.rb +9 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/bin/voxel.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/server.rb +1 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/compute.rb +6 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/compute/models/server.rb +11 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/core.rb +0 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/core/connection.rb +0 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/core/errors.rb +5 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/core/scp.rb +18 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/core/wait_for.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/dns.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/dynect/models/dns/records.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/dynect/requests/dns/get_node_list.rb +2 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/compute.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_backup_internet_service.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_internet_service.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_node.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/clone_vapp.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_internet_service.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_network.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_network_ip.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_vapp.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/instantiate_vapp_template.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/compute.rb +7 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/nodes.rb +1 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/server.rb +93 -99
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/servers.rb +2 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/util.rb +1 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/providers.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/dns.rb +10 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/load_balancers.rb +3 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/compute/flavor.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/compute/server.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/dns/callback.rb +3 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/dns/record.rb +4 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/load_balancers/load_balancer.rb +18 -8
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/storage/directory.rb +5 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/create_image.rb +1 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb +1 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb +8 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/storm_on_demand/compute.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/compute.rb +91 -30
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog_item.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalogs.rb +5 -8
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/network.rb +9 -51
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/networks.rb +21 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/server.rb +38 -58
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/servers.rb +12 -18
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/task.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/tasks.rb +1 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/vdc.rb +14 -29
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/vdcs.rb +6 -11
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/clone_vapp.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_network.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_network_ip.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_vapp.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_vm.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/instantiate_vapp_template.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/login.rb +8 -4
- data/lib/brightbox-cli/vendor/fog/lib/fog/virtual_box/compute.rb +4 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/compute.rb +1 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/models/compute/server.rb +7 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +86 -86
- data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/vm_clone.rb +43 -8
- data/lib/brightbox-cli/vendor/fog/lib/fog/zerigo/models/dns/record.rb +7 -5
- data/lib/brightbox-cli/vendor/fog/lib/fog/zerigo/requests/dns/update_host.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/spec/ecloud/spec_helper.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/tests/aws/models/elb/model_tests.rb +15 -6
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/instance_tests.rb +37 -0
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/security_group_tests.rb +6 -4
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/helper.rb +33 -0
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/listener_tests.rb +22 -4
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/policy_tests.rb +13 -0
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/access_key_tests.rb +2 -7
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb +1 -4
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/user_policy_tests.rb +4 -11
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/user_tests.rb +19 -12
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/rds/helper.rb +38 -3
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/rds/instance_tests.rb +3 -1
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/storage/bucket_tests.rb +66 -1
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/api_client_tests.rb +6 -6
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/cloud_ip_tests.rb +15 -9
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/helper.rb +6 -2
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/image_tests.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/interface_tests.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/load_balancer_tests.rb +9 -9
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_group_tests.rb +8 -8
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_tests.rb +17 -13
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_type_tests.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/user_tests.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/zone_tests.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/helper.rb +87 -64
- data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/ip_tests.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/server_tests.rb +4 -4
- data/lib/brightbox-cli/vendor/fog/tests/helpers/formats_helper.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/tests/helpers/mock_helper.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/dns/dns_tests.rb +4 -2
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/helper.rb +27 -11
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +4 -1
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/node_tests.rb +24 -25
- data/lib/brightbox-cli/vendor/fog/tests/slicehost/requests/compute/slice_tests.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/tests/storm_on_demand/requests/compute/server_tests.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/servers_tests.rb +18 -90
- data/lib/brightbox-cli/vendor/fog/tests/vsphere/requests/compute/vm_clone_tests.rb +16 -4
- data/lib/brightbox-cli/vendor/fog/tests/vsphere/requests/compute/vm_power_on_tests.rb +1 -1
- data/lib/brightbox-cli/version.rb +1 -1
- data/spec/cloud_ips_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/list_cloud_ip.yml +58 -26
- data/spec/fixtures/vcr_cassettes/server_show.yml +143 -102
- data/spec/servers_spec.rb +3 -2
- data/spec/spec_helper.rb +4 -0
- metadata +128 -213
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_list_tests.rb +0 -12
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_lists_tests.rb +0 -12
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancer_tests.rb +0 -116
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancers_tests.rb +0 -19
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/node_tests.rb +0 -19
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/nodes_tests.rb +0 -12
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/virtual_ip_tests.rb +0 -16
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/virtual_ips_tests.rb +0 -12
data/.gitignore
CHANGED
data/brightbox-cli.gemspec
CHANGED
@@ -19,15 +19,16 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
s.add_dependency 'json', '~> 1.5.3'
|
22
|
-
s.add_dependency
|
23
|
-
s.add_dependency
|
24
|
-
s.add_dependency
|
25
|
-
s.add_dependency
|
26
|
-
s.add_dependency
|
27
|
-
s.add_dependency
|
28
|
-
s.add_dependency
|
29
|
-
s.add_dependency
|
30
|
-
s.add_dependency '
|
22
|
+
s.add_dependency('builder')
|
23
|
+
s.add_dependency('excon', '~>0.9.0')
|
24
|
+
s.add_dependency('formatador', '~>0.2.0')
|
25
|
+
s.add_dependency('mime-types')
|
26
|
+
s.add_dependency('net-ssh', '>=2.1.3')
|
27
|
+
s.add_dependency('net-scp', '~>1.0.4')
|
28
|
+
s.add_dependency('nokogiri', '>=1.4.0')
|
29
|
+
s.add_dependency('ruby-hmac')
|
30
|
+
s.add_dependency('hirb','~> 0.6.0')
|
31
|
+
|
31
32
|
s.add_development_dependency('rake', '~> 0.8.0')
|
32
33
|
s.add_development_dependency('vcr')
|
33
34
|
s.add_development_dependency('rspec')
|
@@ -20,7 +20,7 @@ module Brightbox
|
|
20
20
|
consoles << { :url => url, :token => r["console_token"], :expires => r["console_token_expires"] }
|
21
21
|
end
|
22
22
|
|
23
|
-
render_table(consoles, global_options.merge(:fields => [:url, :token, :expires]))
|
23
|
+
render_table(consoles, global_options.merge(:fields => [:url, :token, :expires], :resize => false))
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -13,11 +13,12 @@ module Brightbox
|
|
13
13
|
warn "Couldn't find type #{id}"
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
display_options = {
|
17
|
+
:vertical => true,
|
18
|
+
:fields => [:id, :handle, :status, :name, :ram, :disk, :cores]
|
19
|
+
}
|
20
20
|
|
21
|
+
table_opts = global_options.merge(display_options)
|
21
22
|
render_table(types, table_opts)
|
22
23
|
|
23
24
|
end
|
data/lib/brightbox-cli/config.rb
CHANGED
@@ -2,13 +2,14 @@ module Brightbox
|
|
2
2
|
class DetailedServer < Server
|
3
3
|
def to_row
|
4
4
|
row_attributes = attributes
|
5
|
+
|
5
6
|
if server_type
|
6
7
|
row_attributes[:type] = server_type['id']
|
7
8
|
row_attributes[:type_handle] = server_type['handle']
|
8
9
|
row_attributes[:type_name] = server_type['name']
|
9
10
|
row_attributes[:ram] = server_type['ram']
|
10
11
|
row_attributes[:cores] = server_type['cores']
|
11
|
-
row_attributes[:disk] = server_type['
|
12
|
+
row_attributes[:disk] = server_type['disk_size'].to_i
|
12
13
|
end
|
13
14
|
|
14
15
|
if image
|
@@ -25,14 +25,7 @@ module Brightbox
|
|
25
25
|
CONFIG.client_name = global_options[:c] if global_options[:c]
|
26
26
|
|
27
27
|
if global_options[:k] or ENV["INSECURE"]
|
28
|
-
Excon.ssl_verify_peer = false
|
29
|
-
# FIXME: Overriding this here is not good. Excon calls
|
30
|
-
# post_connection_check so it should have an option not to.
|
31
|
-
class OpenSSL::SSL::SSLSocket
|
32
|
-
def post_connection_check(hostname)
|
33
|
-
true
|
34
|
-
end
|
35
|
-
end
|
28
|
+
Excon.defaults[:ssl_verify_peer] = false
|
36
29
|
end
|
37
30
|
|
38
31
|
unless global_options[:s]
|
@@ -43,9 +43,9 @@ module Brightbox
|
|
43
43
|
a[:type] = server_type['handle']
|
44
44
|
a[:status] = fog_model.state
|
45
45
|
a[:zone] = zone && zone['handle']
|
46
|
-
a[:hostname] =
|
47
|
-
a[:public_hostname] =
|
48
|
-
a[:ipv6_hostname] =
|
46
|
+
a[:hostname] = id
|
47
|
+
a[:public_hostname] = fqdn unless cloud_ips.empty?
|
48
|
+
a[:ipv6_hostname] = ipv6_fqdn if interfaces.any? {|i| i['ipv6_address'] }
|
49
49
|
a
|
50
50
|
end
|
51
51
|
|
@@ -60,16 +60,8 @@ module Brightbox
|
|
60
60
|
fog_model.status == "deleted"
|
61
61
|
end
|
62
62
|
|
63
|
-
def
|
64
|
-
"
|
65
|
-
end
|
66
|
-
|
67
|
-
def public_hostname
|
68
|
-
"public.#{hostname}"
|
69
|
-
end
|
70
|
-
|
71
|
-
def ipv6_hostname
|
72
|
-
"ipv6.#{hostname}"
|
63
|
+
def ipv6_fqdn
|
64
|
+
"ipv6.#{fqdn}"
|
73
65
|
end
|
74
66
|
end
|
75
67
|
|
data/lib/brightbox-cli/types.rb
CHANGED
@@ -108,7 +108,7 @@ geemus says: "That should give you everything you need to get started, but let m
|
|
108
108
|
* Find something you would like to work on. For suggestions look for the `easy`, `medium` and `hard` tags in the {issues}[http://github.com/fog/fog/issues]
|
109
109
|
* Fork the project and do your work in a topic branch.
|
110
110
|
* Add shindo tests to prove your code works and run all the tests using `bundle exec rake`.
|
111
|
-
* Rebase your branch against
|
111
|
+
* Rebase your branch against fog/fog to make sure everything is up to date.
|
112
112
|
* Commit your changes and send a pull request.
|
113
113
|
|
114
114
|
== Additional Resources
|
@@ -72,11 +72,11 @@ def tests(mocked)
|
|
72
72
|
start = Time.now.to_i
|
73
73
|
threads = []
|
74
74
|
Thread.main[:results] = []
|
75
|
-
Fog.providers.each do |
|
75
|
+
Fog.providers.each do |key, value|
|
76
76
|
threads << Thread.new do
|
77
77
|
Thread.main[:results] << {
|
78
|
-
:provider =>
|
79
|
-
:success => sh("export FOG_MOCK=#{mocked} && bundle exec shindont +#{
|
78
|
+
:provider => value,
|
79
|
+
:success => sh("export FOG_MOCK=#{mocked} && bundle exec shindont +#{key}")
|
80
80
|
}
|
81
81
|
end
|
82
82
|
end
|
@@ -252,6 +252,7 @@ task :changelog do
|
|
252
252
|
'Michael Zeng',
|
253
253
|
'nightshade427',
|
254
254
|
'Patrick Debois',
|
255
|
+
'Stepan G. Fedorov',
|
255
256
|
'Wesley Beary'
|
256
257
|
].include?(committer)
|
257
258
|
next
|
@@ -1,3 +1,216 @@
|
|
1
|
+
1.1.2 12/18/2011 c1873e37e76af83e9de3f3308f3baa0664dd8dc2
|
2
|
+
=========================================================
|
3
|
+
|
4
|
+
Stats! { 'collaborators' => 20, 'downloads' => 351821, 'forks' => 332, 'open_issues' => 21, 'watchers' => 1731 }
|
5
|
+
|
6
|
+
MVP! Stepan G. Fedorov
|
7
|
+
|
8
|
+
[Brightbox]
|
9
|
+
Fix zone_id/flavour_id getter/setter for Server. thanks Hemant Kumar
|
10
|
+
Add zone/server_type attribute for Server. thanks Hemant Kumar
|
11
|
+
Add username to Image. thanks Hemant Kumar
|
12
|
+
Add request for remove_firewall_policy. thanks Hemant Kumar
|
13
|
+
Add model method for remove. thanks Hemant Kumar
|
14
|
+
Change logic of fetching zone and flavour_id. thanks Hemant Kumar
|
15
|
+
Remove name as mandatory parameter for creating server group. thanks Hemant Kumar
|
16
|
+
Add created_at attribute for server_group,policy and firewall rule. thanks Hemant Kumar
|
17
|
+
Updated Image format tests for username. thanks Paul Thornthwaite
|
18
|
+
Updated ServerGroup format for created_at time. thanks Paul Thornthwaite
|
19
|
+
|
20
|
+
[aws|autoscaling]
|
21
|
+
allow sa-east-1 region in mocks. thanks Nick Osborn
|
22
|
+
|
23
|
+
[aws|compute]
|
24
|
+
fix security_group format for mock tests. thanks geemus
|
25
|
+
|
26
|
+
[aws|dns]
|
27
|
+
fix capitilization for records#all options. thanks geemus
|
28
|
+
|
29
|
+
[aws|elb]
|
30
|
+
update SSL certificates on listeners. :christmas_tree:. thanks Dylan Egan
|
31
|
+
|
32
|
+
[aws|storage]
|
33
|
+
Support ACL on copy_object. :v:. thanks Dylan Egan
|
34
|
+
|
35
|
+
[brightbox]
|
36
|
+
Adding *_server actions to ServerGroup model. thanks Caius Durling
|
37
|
+
Pass along server_groups when creating a server. thanks Caius Durling
|
38
|
+
Make update_cloud_ip request work. thanks Caius Durling
|
39
|
+
Firewall models. thanks Paul Thornthwaite
|
40
|
+
Added missing requirement and request arg. thanks Paul Thornthwaite
|
41
|
+
Corrected deprecated argument. thanks Paul Thornthwaite
|
42
|
+
Dynamically select testing image. thanks Paul Thornthwaite
|
43
|
+
Helper to get a test server ready. thanks Paul Thornthwaite
|
44
|
+
Revised tests structure. thanks Paul Thornthwaite
|
45
|
+
Test and fix for API client secret reset. thanks Paul Thornthwaite
|
46
|
+
Test update of reverse DNS for CIP. thanks Paul Thornthwaite
|
47
|
+
Updated default Ubuntu image. thanks Paul Thornthwaite
|
48
|
+
Make Cloud IP model's map nicer to use. thanks Paul Thornthwaite
|
49
|
+
Correctly get Server's IP addresses as strings. thanks Paul Thornthwaite
|
50
|
+
ServerGroup association to Servers. thanks Paul Thornthwaite
|
51
|
+
Replace duplicate remove with move test. thanks Paul Thornthwaite
|
52
|
+
Load balancer request tests expanded. thanks Paul Thornthwaite
|
53
|
+
Request test for snapshotting a server. thanks Paul Thornthwaite
|
54
|
+
fix mock tests. thanks geemus
|
55
|
+
|
56
|
+
[clodo]
|
57
|
+
: Added missing field. thanks NomadRain
|
58
|
+
Some cleanup before pool request. thanks NomadRain
|
59
|
+
add fake credentials for mock tests. thanks geemus
|
60
|
+
|
61
|
+
[clodo|compute]
|
62
|
+
Bug fixes. thanks NomadRain
|
63
|
+
I don't know what is ignore_awful_caching, so i removed it. thanks Stepan G Fedorov
|
64
|
+
server.ssh with password. Not only with key. thanks Stepan G Fedorov
|
65
|
+
Fix Mocks. thanks Stepan G Fedorov
|
66
|
+
Enable get_image_details. thanks Stepan G Fedorov
|
67
|
+
Actualize Mocks. thanks Stepan G. Fedorov
|
68
|
+
Enable :get_image_details. thanks Stepan G. Fedorov
|
69
|
+
Add tests. thanks Stepan G. Fedorov
|
70
|
+
Remove ddosprotect field from Mock. thanks Stepan G. Fedorov
|
71
|
+
Add ip-address management. thanks Stepan G. Fedorov
|
72
|
+
Rename moveip to move_ip_address. thanks Stepan G. Fedorov
|
73
|
+
Enable ip-management. thanks Stepan G. Fedorov
|
74
|
+
Fix delete_server mock. thanks Stepan G. Fedorov
|
75
|
+
Fix move_ip_address behaviour. thanks Stepan G. Fedorov
|
76
|
+
Add ip-address management. thanks Stepan G. Fedorov
|
77
|
+
Rename moveip to move_ip_address. thanks Stepan G. Fedorov
|
78
|
+
Enable ip-management. thanks Stepan G. Fedorov
|
79
|
+
Fix delete_server mock. thanks Stepan G. Fedorov
|
80
|
+
Fix move_ip_address behaviour. thanks Stepan G. Fedorov
|
81
|
+
Added missing field (server.type). thanks Обоев Рулон ибн Хаттаб
|
82
|
+
|
83
|
+
[core]
|
84
|
+
Cast Fog.wait_for interval to float. thanks Aaron Suggs
|
85
|
+
fix exceptions from nil credential value. thanks Blake Gentry
|
86
|
+
`@credential` should always be a symbol. thanks Hunter Haugen
|
87
|
+
|
88
|
+
[docs]
|
89
|
+
note in title that multiple keys is an EC2 thing. thanks geemus
|
90
|
+
|
91
|
+
[glesys|compute]
|
92
|
+
fixed tests due to changes in the api. thanks Anton Lindström
|
93
|
+
fix test formats and whitespaces. thanks Anton Lindström
|
94
|
+
|
95
|
+
[misc]
|
96
|
+
parse SQS timestamps as milliseconds. thanks Andrew Bruce
|
97
|
+
Allow use of sa-east-1 in the ec2 mock as well. thanks Andy Delcambre
|
98
|
+
Enabled tests for setting S3 ACL by id and uri on buckets and objects when mocking. thanks Arvid Andersson
|
99
|
+
Added acl_to_hash helper method to Fog::Storage::AWS. thanks Arvid Andersson
|
100
|
+
Ensuring that get_object_acl and get_bucket_acl mock methods returns a hash representation of the ACL. thanks Arvid Andersson
|
101
|
+
Created Rackspace LB models folder. thanks Brian Hartsock
|
102
|
+
This patch adds the ability to specify security groups by security group id, rather than group name. This is a required feature to use security groups within a VPC. thanks Eric Stonfer
|
103
|
+
indentation change. thanks Eric Stonfer
|
104
|
+
Add the ability to return the security group ID when requesting a SecurityGroupData object. thanks Eric Stonfer
|
105
|
+
fix tests to accomodate the new SecurityGroupId. thanks Eric Stonfer
|
106
|
+
Revert "fix tests to accomodate the new SecurityGroupId". thanks Eric Stonfer
|
107
|
+
fix tests to accomodate the addition of security_group_id. thanks Eric Stonfer
|
108
|
+
indentation fix. thanks Eric Stonfer
|
109
|
+
indentation fix. thanks Eric Stonfer
|
110
|
+
[Brightbox]Add remove_firewall_policy to computer.rb. thanks Hemant Kumar
|
111
|
+
[Brightbox]Protocol is no longer required parameter for firewall. thanks Hemant Kumar
|
112
|
+
Add implementation of DescribeInstanceStatus. thanks JD Huntington & Jason Hansen
|
113
|
+
fixed type-o in rdoc on Fog::DNS:DNSMadeEasy. thanks John Dyer
|
114
|
+
add query options to Fog::Storage::AWS#get_object_https_url. thanks Mateusz Juraszek
|
115
|
+
add options hash to Fog::Storage::AWS::File#url and Fog::Storage::AWS::Files#get_https_url which use get_object_https_url method. thanks Mateusz Juraszek
|
116
|
+
add query param to get_object_http_url for consistency. thanks Mateusz Juraszek
|
117
|
+
Fix regression in Rakefile introduced in 70e7ea13. thanks Michael Brodhead
|
118
|
+
add são paulo/brasil region. thanks Raphael Costa
|
119
|
+
mock create_db_instance. thanks Rodrigo Estebanez
|
120
|
+
mocking describe_db_instance. Fix hash structure in create_db_instance. thanks Rodrigo Estebanez
|
121
|
+
mocking delete_db_instance. thanks Rodrigo Estebanez
|
122
|
+
mocking wait_for through describe_db_instances. thanks Rodrigo Estebanez
|
123
|
+
mocking modify_db_instance and reboot_db_instance. thanks Rodrigo Estebanez
|
124
|
+
raise exception instead of excon response. thanks Rodrigo Estebanez
|
125
|
+
Fixing bug: It always showed the first instance when using get. thanks Rodrigo Estebanez
|
126
|
+
Fixes for issues 616 and 617. thanks Sergio Rubio
|
127
|
+
* remove unnecessary debugging. thanks Sergio Rubio
|
128
|
+
* Add missing recognized :libvirt_ip_command. thanks Sergio Rubio
|
129
|
+
* Add server_name environment variable to ip_command. thanks Sergio Rubio
|
130
|
+
* implement :destroy_volumes in Server.destroy (libvirt provider). thanks Sergio Rubio
|
131
|
+
Add documentation for using multiple ssh keys on AWS. thanks Sven Pfleiderer
|
132
|
+
Update bootstrap description. thanks Sven Pfleiderer
|
133
|
+
Escape underscore charakters. thanks Sven Pfleiderer
|
134
|
+
implement STS support. thanks Thom May
|
135
|
+
Allow use of session tokens in AWS Compute. thanks Thom May
|
136
|
+
handle session tokens for SQS and SimpleDB. thanks Thom May
|
137
|
+
Split [AWS|STS] tests into separate files per #609. thanks Thom May
|
138
|
+
Bug fix, metric_statistic#save would always fail. thanks bmiller
|
139
|
+
bump excon dep. thanks geemus
|
140
|
+
bump excon dep. thanks geemus
|
141
|
+
Fixing Rackspace's lack of integer-as-string support as per https://github.com/fog/fog/pull/657#issuecomment-3145337. thanks jimworm
|
142
|
+
add current set of elasticache endpoints. thanks lostboy
|
143
|
+
added sa-east-1 region. thanks thattommyhall
|
144
|
+
Add clodo support. thanks Обоев Рулон ибн Хаттаб
|
145
|
+
Enable clodo support. thanks Обоев Рулон ибн Хаттаб
|
146
|
+
|
147
|
+
[rackspace|dns]
|
148
|
+
error state callbacks now return an error. thanks Brian Hartsock
|
149
|
+
fixed broken test. thanks Brian Hartsock
|
150
|
+
should recognize rackspace_dns_endpoint argument. thanks geemus
|
151
|
+
record should pass priority. thanks geemus
|
152
|
+
mark tests for models pending in mocked mode. thanks geemus
|
153
|
+
|
154
|
+
[rackspace|lb]
|
155
|
+
Fixed bug #644 with HTTP health monitors. thanks Brian Hartsock
|
156
|
+
fix for #650 - Connection logging now loads appropriately. thanks Brian Hartsock
|
157
|
+
added error page requests. thanks Brian Hartsock
|
158
|
+
Added error pages to the model. thanks Brian Hartsock
|
159
|
+
Added list parameter for nodeddress. thanks Brian Hartsock
|
160
|
+
fixed broken test; cleaned up some tests. thanks Brian Hartsock
|
161
|
+
|
162
|
+
[rackspace|load balancers]
|
163
|
+
fixed broken tests. thanks Brian Hartsock
|
164
|
+
|
165
|
+
[rackspace|loadbalancers]
|
166
|
+
Fixed bug in deleting multiple nodes. thanks Brian Hartsock
|
167
|
+
|
168
|
+
[slicehost|compute]
|
169
|
+
update image id in tests. thanks geemus
|
170
|
+
|
171
|
+
[storm_on_demand]
|
172
|
+
fixes for formats in tests. thanks geemus
|
173
|
+
|
174
|
+
[tests | clodo]
|
175
|
+
Added ip-management tests. thanks Stepan G. Fedorov
|
176
|
+
Added ip-management tests. thanks Stepan G. Fedorov
|
177
|
+
|
178
|
+
[tests | clodo ]
|
179
|
+
ddosprotect field must not exist. thanks Stepan G. Fedorov
|
180
|
+
|
181
|
+
[tests | clodo | compute]
|
182
|
+
Add most tests. thanks Stepan G Fedorov
|
183
|
+
Add image tests. thanks Stepan G Fedorov
|
184
|
+
|
185
|
+
[tests | clodo | compute ]
|
186
|
+
create_server - First try. thanks Stepan G Fedorov
|
187
|
+
|
188
|
+
[vcloud]
|
189
|
+
mark tests pending in mocked mode. thanks geemus
|
190
|
+
|
191
|
+
[vcloud|compute]
|
192
|
+
introduce organizations. thanks Peter Meier
|
193
|
+
make networks working also in organizations. thanks Peter Meier
|
194
|
+
remove server from organizations as they are within vApps of vDC. thanks Peter Meier
|
195
|
+
add catalogs to an organization. thanks Peter Meier
|
196
|
+
a vdc does not have a tasklist. thanks Peter Meier
|
197
|
+
introduce vapps. thanks Peter Meier
|
198
|
+
More work on getting server in a useable shape. thanks Peter Meier
|
199
|
+
fix network to the minimum. thanks Peter Meier
|
200
|
+
a vapp might not have any childrens attached. thanks Peter Meier
|
201
|
+
improve models add tests. thanks Peter Meier
|
202
|
+
improve disk info access. thanks Peter Meier
|
203
|
+
improve network. thanks Peter Meier
|
204
|
+
introduce link on a network to parent network. thanks Peter Meier
|
205
|
+
fix an issue if this is not parsed as an array. thanks Peter Meier
|
206
|
+
stopgap fix for test data files. thanks geemus
|
207
|
+
properly namespace vcloud test to prevent breaking others. thanks geemus
|
208
|
+
|
209
|
+
[vsphere]
|
210
|
+
(#10644) Add servers filter to improve clone performance. thanks Jeff McCune
|
211
|
+
fix whitespace issue in yaml for mocks. thanks geemus
|
212
|
+
|
213
|
+
|
1
214
|
1.1.1 11/11/2011 a468aa9a3445aae4f496b1a51e26572b8379c3da
|
2
215
|
=========================================================
|
3
216
|
|
@@ -61,7 +61,7 @@ Cycling servers is great, but in order to actually ssh in we need to setup ssh k
|
|
61
61
|
|
62
62
|
server = connection.servers.bootstrap(:private_key_path => '~/.ssh/id_rsa', :public_key_path => '~/.ssh/id_rsa.pub', :username => 'ubuntu')
|
63
63
|
|
64
|
-
Bootstrap will create the server, but it will also make sure that port 22 is open for traffic and has ssh keys setup.
|
64
|
+
Bootstrap will create the server, but it will also make sure that port 22 is open for traffic and has ssh keys setup. The ssh key pair you specified will be registered under the name "fog\_default" unless you've set `Fog.credential` to a custom string value. In order to hook everything up `bootstrap` will need the server to be running, so by the time it finishes it will be ready. You can then make commands to it directly:
|
65
65
|
|
66
66
|
server.ssh('pwd')
|
67
67
|
server.ssh(['pwd', 'whoami'])
|
@@ -70,6 +70,20 @@ These return an array of results, where each has stdout, stderr and status value
|
|
70
70
|
|
71
71
|
server.destroy
|
72
72
|
|
73
|
+
|
74
|
+
### Managing multiple ssh key pairs on EC2
|
75
|
+
|
76
|
+
The key pair you've specified, will be registered as "fog\_default" after running `bootstrap` for the first time. If you want to use multiple key pairs with the same AWS credentials, you need to set `Fog.credential` to register your other key pairs under different names. Your additional key pair will then be registered as "fog\_#{Fog.credential}":
|
77
|
+
|
78
|
+
Fog.credential = 'my_custom_key'
|
79
|
+
connection.servers.bootstrap(:private_key_path => '~/.ssh/my_custom_key', :public_key_path => '~/.ssh/my_custom_key.pub')
|
80
|
+
|
81
|
+
If you've already registered a custom key pair e.g. using `connection.create_key_pair` or `connection.import_key_pair`, you can set your key paths using `Fog.credentials` and pass in the name of this key so `bootstrap` will use it instead of "fog\_default":
|
82
|
+
|
83
|
+
Fog.credentials = Fog.credentials.merge({ :private_key_path => "~/.ssh/my_custom_key", :public_key_path => "~/.ssh/my_custom_key.pub" })
|
84
|
+
connection.import_key_pair('my_custom_key', IO.read('~/.ssh/my_custom_key.pub')) if connection.key_pairs.get('my_custom_key').nil?
|
85
|
+
server = connection.servers.bootstrap(:key_name => 'my_custom_key')
|
86
|
+
|
73
87
|
## Rackspace Cloud Servers
|
74
88
|
|
75
89
|
Rackspace has <a href="http://www.rackspacecloud.com/cloud_hosting_products/servers">Cloud Servers</a> and you can sign up <a href="https://www.rackspacecloud.com/signup">here</a> and get your credentials <a href="https://manage.rackspacecloud.com/APIAccess.do">here</a>.
|