Sha256: 73320b64d7ab6a969cd6088985534cc923c8889e65f00ada452c38323ecc608b
Contents?: true
Size: 614 Bytes
Versions: 6
Compression:
Stored size: 614 Bytes
Contents
require "thor" module Zonesync class CLI < Thor default_command :sync desc "sync", "syncs the contents of Zonefile to the DNS server configured in Rails.application.credentials.zonesync" 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
Version data entries
6 entries across 6 versions & 1 rubygems