lib/fog/compute/new_servers.rb in fog-0.5.3 vs lib/fog/compute/new_servers.rb in fog-0.6.0
- old
+ new
@@ -1,7 +1,5 @@
-require 'fog/core/parser'
-
module Fog
module NewServers
class Compute < Fog::Service
requires :new_servers_password, :new_servers_username
@@ -54,9 +52,11 @@
location = caller.first
warning = "[yellow][WARN] Fog::NewServers::Compute.new is deprecated, use Fog::Compute.new(:provider => 'NewServers') instead[/]"
warning << " [light_black](" << location << ")[/] "
Formatador.display_line(warning)
end
+
+ require 'fog/core/parser'
@new_servers_password = options[:new_servers_password]
@new_servers_username = options[:new_servers_username]
@host = options[:host] || "noc.newservers.com"
@port = options[:port] || 443