Skip to content

Commit d6469b4

Browse files
committed
revert
1 parent 6b45546 commit d6469b4

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lib/project_path.rb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
# require "project_path/version"
1+
require "project_path/version"
22

33
class ProjectPath
4-
def self.hi
5-
puts "Hello world!"
4+
def self.discover_root
5+
if Dir.glob('.git').length == 1
6+
Dir.pwd
7+
else
8+
Dir.chdir('..') do
9+
self.discover_root
10+
end
11+
end
612
end
7-
end
13+
end

project_path-0.1.2.gem

-6 KB
Binary file not shown.

0 commit comments

Comments
 (0)