lib/rubolite/admin.rb in rubolite-0.0.3 vs lib/rubolite/admin.rb in rubolite-0.0.4
- old
+ new
@@ -10,9 +10,19 @@
def initialize(path=nil)
@path = path if path && valid_path?(path)
end
+ def reset!
+ @parser = nil
+ @writer = nil
+ @git = nil
+ @repo_origin = nil
+ @client = nil
+
+ self
+ end
+
def path=(new_path)
valid_path?(new_path)
@path = new_path
end
\ No newline at end of file