uhlenbrock-slicehost-tools 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/slicehost-tools/resources.rb +1 -1
- data/lib/slicehost-tools/tools/dns.rb +3 -3
- data/slicehost-tools.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
if File.exists? File.join(ENV['HOME'], ".slicehost-tools")
|
3
3
|
load File.join(ENV['HOME'], ".slicehost-tools")
|
4
4
|
else
|
5
|
-
require File.
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + "/tools")
|
6
6
|
Tools::Default.start(['apikey'])
|
7
7
|
exit
|
8
8
|
end
|
@@ -44,7 +44,7 @@ module Tools
|
|
44
44
|
zone = Zone.find(:first, :params => { :origin => "#{domain}." })
|
45
45
|
end
|
46
46
|
|
47
|
-
Record.new( :record_type => 'CNAME', :zone_id => zone.id, :name => "mail
|
47
|
+
Record.new( :record_type => 'CNAME', :zone_id => zone.id, :name => "mail", :data => "ghs.google.com." ).save
|
48
48
|
Record.new( :record_type => 'MX', :zone_id => zone.id, :name => "#{domain}.", :data => "ASPMX.L.GOOGLE.COM.", :aux => "1" ).save
|
49
49
|
Record.new( :record_type => 'MX', :zone_id => zone.id, :name => "#{domain}.", :data => "ALT1.ASPMX.L.GOOGLE.COM.", :aux => "5" ).save
|
50
50
|
Record.new( :record_type => 'MX', :zone_id => zone.id, :name => "#{domain}.", :data => "ALT2.ASPMX.L.GOOGLE.COM.", :aux => "5" ).save
|
@@ -53,7 +53,7 @@ module Tools
|
|
53
53
|
puts "#{domain} configured for Google Apps."
|
54
54
|
end
|
55
55
|
|
56
|
-
desc "list", "lists all zones and their associated records"
|
56
|
+
desc "list [DOMAIN]", "lists all zones and their associated records"
|
57
57
|
def list(domain = nil)
|
58
58
|
list_params = { :origin => "#{domain}." } unless domain.nil?
|
59
59
|
list_params ||= {}
|
@@ -65,7 +65,7 @@ module Tools
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
-
desc "to_zonefile", "output a zone file for the given domain"
|
68
|
+
desc "to_zonefile [DOMAIN]", "output a zone file for the given domain"
|
69
69
|
def to_zonefile(domain = nil)
|
70
70
|
abort "You must give a domain" if domain.nil?
|
71
71
|
zone = Zone.find_by_origin(domain)
|
data/slicehost-tools.gemspec
CHANGED