gym/lib/gym/commands_generator.rb in fastlane-2.39.0.beta.20170614010012 vs gym/lib/gym/commands_generator.rb in fastlane-2.39.0.beta.20170615010031

- old
+ new

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