lib/packwerk/generators/templates/packwerk in packwerk-1.0.0 vs lib/packwerk/generators/templates/packwerk in packwerk-1.0.1
- old
+ new
@@ -8,15 +8,15 @@
# Command line arguments needs to be duplicated because spring modifies it
packwerk_argv = ARGV.dup
begin
- load(File.expand_path("../spring", __FILE__))
+ load(File.expand_path("spring", __dir__))
rescue LoadError => e
raise unless e.message.include?("spring")
end
-require File.expand_path("../../config/environment", __FILE__)
+require File.expand_path("../config/environment", __dir__)
require "packwerk"
cli = Packwerk::Cli.new
cli.run(packwerk_argv)