Class: Piston::Commands::Unlock
- Inherits:
-
Piston::Command
- Object
- Piston::Command
- Piston::Commands::Unlock
- Defined in:
- lib/piston/commands/unlock.rb
Instance Attribute Summary
Attributes inherited from Piston::Command
#args, #dry_run, #force, #lock, #logging_stream, #quiet, #recursive, #revision, #show_updates, #verbose
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Piston::Command
#find_targets, #initialize, #skip, #svn
Constructor Details
This class inherits a constructor from Piston::Command
Class Method Details
.detailed_help ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/piston/commands/unlock.rb', line 19 def self.detailed_help <<EOF usage: unlock DIR [DIR [...]] Unlocked folders are free to be updated to the latest revision when updating. EOF end |
.help ⇒ Object
15 16 17 |
# File 'lib/piston/commands/unlock.rb', line 15 def self.help "Undoes the changes enabled by lock" end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/piston/commands/unlock.rb', line 7 def run raise Piston::CommandError, "No targets to run against" if args.empty? svn :propdel, Piston::LOCKED, *args args.each do |dir| logging_stream.puts "Unlocked '#{dir}'" end end |