lib/braid/commands/status.rb in braid-1.0.22 vs lib/braid/commands/status.rb in braid-1.1.0
- old
+ new
@@ -3,11 +3,11 @@
class Status < Command
def run(path = nil, options = {})
path ? status_one(path, options) : status_all(options)
end
- protected
+ private
def status_all(options = {})
print "\n"
msg "Listing all mirrors.\n=======================================================\n"
config.mirrors.each do |path|
@@ -38,9 +38,13 @@
elsif !mirror.diff.empty?
print ' (Locally Modified)'
end
print "\n"
clear_remote(mirror, options)
+ end
+
+ def config_mode
+ Config::MODE_READ_ONLY
end
end
end
end