Sha256: 5ed3339d3888b0064438c098fb3f695ea54a64d1eafdf4f49075a2c2bb682f81

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

module Tdfire
	class BinaryUrlManager
		HOST = "http://iosframeworkserver-shopkeeperclient.cloudapps.2dfire.com"

		def self.pull_url_for_pod_version(pod, version)
			HOST + "/getframework/PRODUCTION/#{pod}/#{version}"
		end

		def self.get_pull_url_for_pod_version(pod, version)
			command = "curl #{pull_url_for_pod_version(pod, version)} > #{pod}.framework.zip"

			run_curl command
		end

		def self.push_url
			HOST + "/upload" #+ param
		end

		def self.post_push_url(name, version, path, commit = nil, commit_hash = nil)
			param = %Q[-F "frameworkName=#{name}" -F "version=#{version}" -F "environment=PRODUCTION" -F "changelog=#{commit}" -F "featureName=#{commit}" -F "framework=@#{path}" -F "commitHash=#{commit_hash}"]
			command = "curl #{push_url} #{param}"

			run_curl command
		end

		def self.run_curl(command)
			Pod::UI.message "CURL: \n" + command

			system command
		end

		def self.private_cocoapods_url
			"git@git.2dfire-inc.com:ios/cocoapods-spec.git"
			# "git@git.2dfire-inc.com:qingmu/private_cocoapods.git"
		end

		def self.template_lib_url
			"git@git.2dfire-inc.com:ios/binary-pod-template.git"
		end
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cocoapods-tdfire-binary-1.0.5 lib/cocoapods-tdfire-binary/binary_url_manager.rb
cocoapods-tdfire-binary-1.0.4 lib/cocoapods-tdfire-binary/binary_url_manager.rb
cocoapods-tdfire-binary-1.0.3 lib/cocoapods-tdfire-binary/binary_url_manager.rb
cocoapods-tdfire-binary-1.0.2 lib/cocoapods-tdfire-binary/binary_url_manager.rb
cocoapods-tdfire-binary-1.0.0 lib/cocoapods-tdfire-binary/binary_url_manager.rb