Method: Cir::Cli::StatusCommand#process
- Defined in:
- lib/cir/cli/status_command.rb
#process ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/cir/cli/status_command.rb', line 28 def process files = self.repository.status(self.files.empty? ? nil : self.files) files.each do |file| diff = file.diff if diff.changed? puts "File #{file.file_path} changed." puts "#{diff.to_s}\n" if self.args[:show_diff] elsif self.args[:all] puts "File #{file.file_path} is the same." end end end |