Sha256: acd0483a56b2be9dc14eeae545bb4e0cef2ac1ecfb5ae490bc0de280ead2277b
Contents?: true
Size: 709 Bytes
Versions: 12
Compression:
Stored size: 709 Bytes
Contents
# frozen_string_literal: true require_relative '../../lib/version' namespace :swiftlint do desc 'Download and install swiftlint tool' task :install do REPO = 'https://github.com/realm/SwiftLint' VERSION = ENV['SWIFTLINT_VERSION'] || DangerSwiftlint::SWIFTLINT_VERSION ASSET = 'portable_swiftlint.zip' URL = "#{REPO}/releases/download/#{VERSION}/#{ASSET}" DESTINATION = File.expand_path(File.join(File.dirname(__FILE__), 'bin')) puts "Downloading swiftlint@#{VERSION}" sh [ "mkdir -p #{DESTINATION}", "curl -s -L #{URL} -o #{ASSET}", "unzip -q #{ASSET} -d #{DESTINATION}", "rm #{ASSET}" ].join(' && ') end end task default: 'swiftlint:install'
Version data entries
12 entries across 12 versions & 1 rubygems