Sha256: 8a5ff5146c624608f493f69edf5f5855bfe9709ccc16a0518deec580443bf4d6
Contents?: true
Size: 716 Bytes
Versions: 5
Compression:
Stored size: 716 Bytes
Contents
require 'choice' Choice.options do option :perform do short '-p' long '--perform=OPERATION' desc 'Operation to perform, valid options: backup (default)' valid %w[backup] default 'backup' end header '' header 'Specific options:' option :config do short '-C' long '--config=CONFIG' desc 'Path to riserva.yml, can also be defined as RISERVA_CONFIG environment variable' end separator '' separator 'Common options: ' option :help do long '--help' desc 'Show this message' end option :version do short '-v' long '--version' desc 'Show version' action do puts "Riserva backup tool v#{Riserva::VERSION}" exit end end end
Version data entries
5 entries across 5 versions & 1 rubygems