class Cir::Cli::RestoreCommand
Restore command
Public Instance Methods
opts()
click to toggle source
# File lib/cir/cli/restore_command.rb, line 20 def opts Trollop::Parser.new do banner "Discard local changes and restore last known version of the file (~ git reset)" end end
process()
click to toggle source
# File lib/cir/cli/restore_command.rb, line 26 def process Trollop::die "Missing file list" if self.files.empty? self.repository.restore(self.files) end