From 8e226728cde592cc35dfad4da4322a494649b71a Mon Sep 17 00:00:00 2001 From: geemus Date: Wed, 24 Aug 2011 20:21:21 -0500 Subject: [PATCH] [compute|new_servers] move new_servers compute to its own shared area (namespacing should probably be corrected) --- lib/fog/compute.rb | 2 +- lib/fog/new_servers.rb | 2 +- lib/fog/{compute/new_servers.rb => new_servers/compute.rb} | 4 ++-- .../requests/compute}/add_server.rb | 0 .../requests/compute}/cancel_server.rb | 0 .../requests/compute}/get_server.rb | 0 .../requests/compute}/list_images.rb | 0 .../requests/compute}/list_plans.rb | 0 .../requests/compute}/list_servers.rb | 0 .../requests/compute}/reboot_server.rb | 0 10 files changed, 4 insertions(+), 4 deletions(-) rename lib/fog/{compute/new_servers.rb => new_servers/compute.rb} (95%) rename lib/fog/{compute/requests/new_servers => new_servers/requests/compute}/add_server.rb (100%) rename lib/fog/{compute/requests/new_servers => new_servers/requests/compute}/cancel_server.rb (100%) rename lib/fog/{compute/requests/new_servers => new_servers/requests/compute}/get_server.rb (100%) rename lib/fog/{compute/requests/new_servers => new_servers/requests/compute}/list_images.rb (100%) rename lib/fog/{compute/requests/new_servers => new_servers/requests/compute}/list_plans.rb (100%) rename lib/fog/{compute/requests/new_servers => new_servers/requests/compute}/list_servers.rb (100%) rename lib/fog/{compute/requests/new_servers => new_servers/requests/compute}/reboot_server.rb (100%) diff --git a/lib/fog/compute.rb b/lib/fog/compute.rb index fa16522d3..af709c096 100644 --- a/lib/fog/compute.rb +++ b/lib/fog/compute.rb @@ -27,7 +27,7 @@ module Fog require 'fog/compute/linode' Fog::Compute::Linode.new(attributes) when :newservers - require 'fog/compute/new_servers' + require 'fog/new_servers/compute' Fog::Compute::NewServers.new(attributes) when :ninefold require 'fog/ninefold/compute' diff --git a/lib/fog/new_servers.rb b/lib/fog/new_servers.rb index c805d2d6b..6e32726f1 100644 --- a/lib/fog/new_servers.rb +++ b/lib/fog/new_servers.rb @@ -5,7 +5,7 @@ module Fog extend Fog::Provider - service(:compute, 'compute/new_servers') + service(:compute, 'new_servers/compute') end end diff --git a/lib/fog/compute/new_servers.rb b/lib/fog/new_servers/compute.rb similarity index 95% rename from lib/fog/compute/new_servers.rb rename to lib/fog/new_servers/compute.rb index e4aaa68c4..f2618a350 100644 --- a/lib/fog/compute/new_servers.rb +++ b/lib/fog/new_servers/compute.rb @@ -5,9 +5,9 @@ module Fog requires :new_servers_password, :new_servers_username recognizes :host, :port, :scheme, :persistent - model_path 'fog/compute/models/new_servers' + model_path 'fog/new_servers/models/compute' - request_path 'fog/compute/requests/new_servers' + request_path 'fog/new_servers/requests/compute' request :add_server request :cancel_server request :get_server diff --git a/lib/fog/compute/requests/new_servers/add_server.rb b/lib/fog/new_servers/requests/compute/add_server.rb similarity index 100% rename from lib/fog/compute/requests/new_servers/add_server.rb rename to lib/fog/new_servers/requests/compute/add_server.rb diff --git a/lib/fog/compute/requests/new_servers/cancel_server.rb b/lib/fog/new_servers/requests/compute/cancel_server.rb similarity index 100% rename from lib/fog/compute/requests/new_servers/cancel_server.rb rename to lib/fog/new_servers/requests/compute/cancel_server.rb diff --git a/lib/fog/compute/requests/new_servers/get_server.rb b/lib/fog/new_servers/requests/compute/get_server.rb similarity index 100% rename from lib/fog/compute/requests/new_servers/get_server.rb rename to lib/fog/new_servers/requests/compute/get_server.rb diff --git a/lib/fog/compute/requests/new_servers/list_images.rb b/lib/fog/new_servers/requests/compute/list_images.rb similarity index 100% rename from lib/fog/compute/requests/new_servers/list_images.rb rename to lib/fog/new_servers/requests/compute/list_images.rb diff --git a/lib/fog/compute/requests/new_servers/list_plans.rb b/lib/fog/new_servers/requests/compute/list_plans.rb similarity index 100% rename from lib/fog/compute/requests/new_servers/list_plans.rb rename to lib/fog/new_servers/requests/compute/list_plans.rb diff --git a/lib/fog/compute/requests/new_servers/list_servers.rb b/lib/fog/new_servers/requests/compute/list_servers.rb similarity index 100% rename from lib/fog/compute/requests/new_servers/list_servers.rb rename to lib/fog/new_servers/requests/compute/list_servers.rb diff --git a/lib/fog/compute/requests/new_servers/reboot_server.rb b/lib/fog/new_servers/requests/compute/reboot_server.rb similarity index 100% rename from lib/fog/compute/requests/new_servers/reboot_server.rb rename to lib/fog/new_servers/requests/compute/reboot_server.rb