Sha256: 5f3e0371245dd86c116d94b71408064bcba132a26bf8b9fcd870857da3d2438d
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
require 'commander' module BackupRepos class Commander include ::Commander::Methods def run program :name, 'Backup Repos' program :version, BackupRepos::VERSION program :description, 'Backup your repositories to specified directory.' command :backup do |c| c.syntax = 'backup-repos backup' c.description = 'Backup your repositories.' c.option '--backup_root DIR', String, 'Backup destination directory' c.option '--debug', String, 'Show debug information' c.action do |_args, options| BackupRepos.config = options BackupRepos::Backup.new.process end end run! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backup_repos-0.1.0 | lib/backup_repos/commander.rb |