Class: Piston::Commands::Diff
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#force, #guess_wc, #initialize, logger, #logger, #quiet, #verbose, #working_copy!
Constructor Details
This class inherits a constructor from Piston::Commands::Base
Instance Method Details
#run ⇒ Object
6 7 8 9 |
# File 'lib/piston/commands/diff.rb', line 6 def run working_copy = working_copy!([:wcdir]) working_copy.diff end |
#start(*args) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/piston/commands/diff.rb', line 11 def start(*args) args.flatten.map {|d| Pathname.new(d).}.each do |wcdir| begin [:wcdir] = wcdir run rescue Piston::WorkingCopy::NotWorkingCopy puts "#{wcdir} is not a working copy" end end end |