lib/zonesync/cli.rb in zonesync-0.4.1 vs lib/zonesync/cli.rb in zonesync-0.5.0
- old
+ new
@@ -7,8 +7,13 @@
method_option :dry_run, type: :boolean, default: false, aliases: :n, desc: "log operations to STDOUT but don't perform the sync"
def sync
Zonesync.call dry_run: options[:dry_run]
end
+ desc "generate", "generates a Zonefile from the DNS server configured in Rails.application.credentials.zonesync"
+ def generate
+ Zonesync.generate
+ end
+
def self.exit_on_failure? = true
end
end