File tree 5 files changed +6
-6
lines changed
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
# https://twitter.com/mitchellh/status/283014103189053442
5
5
Signal . trap ( "INT" ) { exit 1 }
6
6
7
- $:. push File . expand_path ( "../../ lib" , __FILE__ )
7
+ $:. push File . expand_path ( "../lib" , __dir__ )
8
8
$stdout. sync = true
9
9
10
10
require "omnibus/cli"
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ def project(name)
208
208
# @return [Pathname]
209
209
#
210
210
def source_root
211
- @source_root ||= Pathname . new ( File . expand_path ( "../.. " , __FILE__ ) )
211
+ @source_root ||= Pathname . new ( File . expand_path ( ".." , __dir__ ) )
212
212
end
213
213
214
214
#
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class Generator < Thor::Group
73
73
class << self
74
74
# Set the source root for Thor
75
75
def source_root
76
- File . expand_path ( "../ generator_files" , __FILE__ )
76
+ File . expand_path ( "generator_files" , __dir__ )
77
77
end
78
78
end
79
79
Original file line number Diff line number Diff line change 1
- lib = File . expand_path ( "../ lib" , __FILE__ )
1
+ lib = File . expand_path ( "lib" , __dir__ )
2
2
$LOAD_PATH. unshift ( lib ) unless $LOAD_PATH. include? ( lib )
3
3
require "omnibus/version"
4
4
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ def fixture_path(*pieces)
6
6
end
7
7
8
8
def tmp_path
9
- File . expand_path ( "../../ tmp" , __FILE__ )
9
+ File . expand_path ( "../tmp" , __dir__ )
10
10
end
11
11
12
12
private
13
13
14
14
def fixtures_path
15
- File . expand_path ( "../../ fixtures" , __FILE__ )
15
+ File . expand_path ( "../fixtures" , __dir__ )
16
16
end
17
17
end
18
18
end
You can’t perform that action at this time.
0 commit comments