Permalink
Browse files

Rudy::DOMAIN => Rudy::DEFAULT_DOMAIN

  • Loading branch information...
1 parent 4fd2f7c commit 96c477870cf229501b6ba2e6cd26a3a4afca5650 @Fluxx Fluxx committed Jun 1, 2011
View
@@ -56,7 +56,7 @@ def Rudy.sysinfo
end
def sysinfo; Rudy.sysinfo; end
- unless defined? Rudy::DOMAIN # We can assume all constants are defined
+ unless defined? Rudy::DEFAULT_DOMAIN # We can assume all constants are defined
@@quiet = false
@@auto = false
View
@@ -1,5 +1,4 @@
-
module Rudy
module CLI
class Machines < Rudy::CLI::CommandBase
View
@@ -48,16 +48,16 @@ def self.reset_global; @@global = Rudy::Global.new; end
def self.create_domain
@sdb = Rudy::AWS::SDB.new(@@global.accesskey, @@global.secretkey, @@global.region)
- @sdb.create_domain Rudy::DOMAIN
+ @sdb.create_domain Rudy::DEFAULT_DOMAIN
end
def self.domain_exists?
@sdb = Rudy::AWS::SDB.new(@@global.accesskey, @@global.secretkey, @@global.region)
- (@sdb.list_domains || []).member? Rudy::DOMAIN
+ (@sdb.list_domains || []).member? Rudy::DEFAULT_DOMAIN
end
def self.domain
- Rudy::DOMAIN
+ Rudy::DEFAULT_DOMAIN
end
# Puts +msg+ to +@@logger+
View
@@ -7,7 +7,7 @@ module Metadata
COMMON_FIELDS = [:region, :zone, :environment, :role].freeze
@@rsdb = nil
- @@domain = Rudy::DOMAIN
+ @@domain = Rudy::DEFAULT_DOMAIN
#
def self.get_rclass(rtype)
@@ -45,11 +45,11 @@ def self.create_domain(n)
@@domain = n if @@rsdb.create_domain n
end
- # Destroys a SimpleDB domain named +n+ and sets +@@domain+ to Rudy::DOMAIN
+ # Destroys a SimpleDB domain named +n+ and sets +@@domain+ to Rudy::DEFAULT_DOMAIN
def self.destroy_domain(n)
Rudy::Huxtable.ld "DESTROY: #{n}" if Rudy.debug?
@@rsdb.destroy_domain n
- @@domain = Rudy::DOMAIN
+ @@domain = Rudy::DEFAULT_DOMAIN
true
end
@@ -12,7 +12,7 @@
Rudy::Huxtable.global.offline = false
end
- drill "has default domain", Rudy::DOMAIN do
+ drill "has default domain", Rudy::DEFAULT_DOMAIN do
Rudy::Metadata.domain
end
@@ -28,7 +28,7 @@
dream test_domain
drill "can create test domain (automatically sets new internal domain)" do
- Rudy::Metadata.domain = Rudy::DOMAIN
+ Rudy::Metadata.domain = Rudy::DEFAULT_DOMAIN
Rudy::Metadata.create_domain test_domain
end
@@ -4,7 +4,7 @@
tryout "Disk API" do
- set :test_domain, Rudy::DOMAIN #'test_' << Rudy::Utils.strand(4)
+ set :test_domain, Rudy::DEFAULT_DOMAIN #'test_' << Rudy::Utils.strand(4)
set :test_env, 'stage' #'env_' << Rudy::Utils.strand(4)
setup do
@@ -5,7 +5,7 @@
tryout "Backup API" do
set :sample_time, Time.now.utc
- set :test_domain, Rudy::DOMAIN #'test_' << Rudy::Utils.strand(4)
+ set :test_domain, Rudy::DEFAULT_DOMAIN #'test_' << Rudy::Utils.strand(4)
set :test_env, :stage #'env_' << Rudy::Utils.strand(4)
setup do
@@ -5,7 +5,7 @@
tryout "Backup Snapshot API" do
set :sample_time, Time.now.utc
- set :test_domain, Rudy::DOMAIN #'test_' << Rudy::Utils.strand(4)
+ set :test_domain, Rudy::DEFAULT_DOMAIN #'test_' << Rudy::Utils.strand(4)
set :test_env, :stage #'env_' << Rudy::Utils.strand(4)
setup do
@@ -4,7 +4,7 @@
tryout "Rudy::Machine API" do
- set :test_domain, Rudy::DOMAIN #'test_' << Rudy::Utils.strand(4)
+ set :test_domain, Rudy::DEFAULT_DOMAIN #'test_' << Rudy::Utils.strand(4)
set :test_env, 'stage' #'env_' << Rudy::Utils.strand(4)
setup do
@@ -4,7 +4,7 @@
tryout "Rudy::Machine Instance API" do
- set :test_domain, Rudy::DOMAIN #'test_' << Rudy::Utils.strand(4)
+ set :test_domain, Rudy::DEFAULT_DOMAIN #'test_' << Rudy::Utils.strand(4)
set :test_env, 'stage' #'env_' << Rudy::Utils.strand(4)
setup do
@@ -5,7 +5,7 @@
tryout "Rudy::Machines API" do
- set :test_domain, Rudy::DOMAIN #'test_' << Rudy::Utils.strand(4)
+ set :test_domain, Rudy::DEFAULT_DOMAIN #'test_' << Rudy::Utils.strand(4)
set :test_env, 'stage' #'env_' << Rudy::Utils.strand(4)
setup do

0 comments on commit 96c4778

Please sign in to comment.