65
66
67
68
69
70
71
72
73
74
75
76
77
|
# File 'lib/xcode/project/packer.rb', line 65
def release
unless `git remote -v` =~ /git@github\.com:([^\/]+)\/(.+?)\.git/
abort 'can\'t find github remote'
else
login, repos = $1, $2
token = Keychain.items.find{ |item| item.label[/^github.com/] && item.account == "#{login}/token" }.password
pack
uploader = Net::GitHub::Upload.new(:login => login, :token => token)
uploader.upload(:repos => repos, :file => pack_path.to_s, :description => pack_description)
end
end
|