Skip to content

Commit

Permalink
0.1.1: Don't output anything if nothing updated (will add a silent mo…
Browse files Browse the repository at this point in the history
…de later)
  • Loading branch information
hlidotbe committed Sep 8, 2011
1 parent 51cf969 commit e81903f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
DDNS Update History
===================

Version 0.1.1 (2011-09-08)
* Don't output anything if nothing updated (will add a silent mode later)
Version 0.1.0 (2011-09-08)
* First release.
4 changes: 2 additions & 2 deletions bin/ddnsupdate
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ EOS
Trollop::die "missing key" if cmd_opts[:key].nil?

ip = (cmd_opts[:remote] && determine_remote_ip) || determine_local_ip
update(cmd_opts[:host], ip, cmd_opts[:key], cmd_opts[:wild])
puts "Host updated with ip #{ip}"

puts "Host updated with ip #{ip}" if update(cmd_opts[:host], ip, cmd_opts[:key], cmd_opts[:wild])
when "gen"
cmd_opts = Trollop::options do
banner <<-EOS
Expand Down
2 changes: 1 addition & 1 deletion ddnsupdate.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = %q{ddnsupdate}
s.version = "0.1.0"
s.version = "0.1.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Hugues Lismonde}]
Expand Down
3 changes: 3 additions & 0 deletions lib/ddnsupdate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def self.update(zone, ip, key, wild = false)
err = stderr.read
raise UpdateError, err unless err.empty?
end
true
else
false
end
end
end

0 comments on commit e81903f

Please sign in to comment.