Sha256: 0d2aa45dd86fa4053fa13019d0221ef109ef78218ad4b12910f1691d02547c0f
Contents?: true
Size: 1.11 KB
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-tdfire-binary-1.0.1 | lib/cocoapods-tdfire-binary/binary_url_manager.rb |