Class: Zonesync::CLI
- Inherits:
-
Thor
- Object
- Thor
- Zonesync::CLI
- Defined in:
- lib/zonesync/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
37 |
# File 'lib/zonesync/cli.rb', line 37 def self.exit_on_failure? = true |
Instance Method Details
#generate ⇒ Object
24 25 26 27 |
# File 'lib/zonesync/cli.rb', line 24 def generate kwargs = .to_hash.transform_keys(&:to_sym) Zonesync.generate(**kwargs) end |
#repair ⇒ Object
32 33 34 35 |
# File 'lib/zonesync/cli.rb', line 32 def repair kwargs = .to_hash.transform_keys(&:to_sym) Zonesync.repair(**kwargs) end |
#sync ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/zonesync/cli.rb', line 13 def sync kwargs = .to_hash.transform_keys(&:to_sym) Zonesync.call(**kwargs) rescue ConflictError, MissingManifestError, ChecksumMismatchError => e puts e. exit 1 end |