bin/rbfs in rbfs-0.0.2 vs bin/rbfs in rbfs-0.0.3

- old
+ new

@@ -1,10 +1,7 @@ #!/usr/bin/env ruby require 'rbfs' require 'rbfs/command' -config = Rbfs::Command.config -hosts = Rbfs::Hosts.new(config[:hosts]) -hosts.each do |host| - puts "#{host} (#{host.ip})" if config[:verbose] - host.sync(config) -end +command = Rbfs::Command.new +success = command.sync +exit 1 unless success