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 CHANGED
@@ -4,7 +4,7 @@ require 'rake/gempackagetask'
4
4
 
5
5
  gem_spec = Gem::Specification.new do |s|
6
6
  s.name = %q{slicehost-tools}
7
- s.version = "0.0.6"
7
+ s.version = "0.0.7"
8
8
 
9
9
  s.specification_version = 2 if s.respond_to? :specification_version=
10
10
 
@@ -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.dirname(File.join(__FILE__, "tools"))
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.", :data => "ghs.google.com." ).save
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)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{slicehost-tools}
3
- s.version = "0.0.6"
3
+ s.version = "0.0.7"
4
4
 
5
5
  s.specification_version = 2 if s.respond_to? :specification_version=
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uhlenbrock-slicehost-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Cox