gym/lib/gym/commands_generator.rb in fastlane-2.74.1 vs gym/lib/gym/commands_generator.rb in fastlane-2.75.0.beta.20180109010003
- old
+ new
@@ -49,29 +49,29 @@
c.syntax = "fastlane gym init"
c.description = "Creates a new Gymfile for you"
c.action do |args, options|
containing = FastlaneCore::Helper.fastlane_enabled_folder_path
path = File.join(containing, Gym.gymfile_name)
- UI.user_error! "Gymfile already exists" if File.exist?(path)
+ UI.user_error!("Gymfile already exists") if File.exist?(path)
is_swift_fastfile = args.include?("swift")
if is_swift_fastfile
path = File.join(containing, Gym.gymfile_name + ".swift")
- UI.user_error! "Gymfile.swift already exists" if File.exist?(path)
+ UI.user_error!("Gymfile.swift already exists") if File.exist?(path)
end
if is_swift_fastfile
template = File.read("#{Gym::ROOT}/lib/assets/GymfileTemplate.swift")
else
template = File.read("#{Gym::ROOT}/lib/assets/GymfileTemplate")
end
File.write(path, template)
- UI.success "Successfully created '#{path}'. Open the file using a code editor."
+ UI.success("Successfully created '#{path}'. Open the file using a code editor.")
end
end
- default_command :build
+ default_command(:build)
run!
end
end
end