lib/gym/commands_generator.rb in gym-1.7.0 vs lib/gym/commands_generator.rb in gym-1.8.0

- old
+ new

@@ -48,10 +48,10 @@ c.description = "Creates a new Gymfile for you" c.action do |_args, options| containing = (File.directory?("fastlane") ? 'fastlane' : '.') path = File.join(containing, Gym.gymfile_name) UI.user_error! "Gymfile already exists" if File.exist?(path) - template = File.read("#{Helper.gem_path('gym')}/lib/assets/GymfileTemplate") + template = File.read("#{Gym::ROOT}/lib/assets/GymfileTemplate") File.write(path, template) UI.success "Successfully created '#{path}'. Open the file using a code editor." end end