lib/scan/commands_generator.rb in scan-0.11.3 vs lib/scan/commands_generator.rb in scan-0.12.0

- old
+ new

@@ -47,10 +47,10 @@ c.description = "Creates a new Scanfile for you" c.action do |_args, options| containing = (Helper.fastlane_enabled? ? 'fastlane' : '.') path = File.join(containing, Scan.scanfile_name) UI.user_error!("Scanfile already exists").yellow if File.exist?(path) - template = File.read("#{Helper.gem_path('scan')}/lib/assets/ScanfileTemplate") + template = File.read("#{Scan::ROOT}/lib/assets/ScanfileTemplate") File.write(path, template) UI.success("Successfully created '#{path}'. Open the file using a code editor.") end end