mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Mass s&r: iron-io -> kumokit
This commit is contained in:
@@ -6,7 +6,7 @@ require 'openssl'
|
||||
|
||||
require_relative 'utils.rb'
|
||||
|
||||
swaggerUrl = "https://raw.githubusercontent.com/iron-io/functions/master/docs/swagger.yml"
|
||||
swaggerUrl = "https://raw.githubusercontent.com/kumokit/functions/master/docs/swagger.yml"
|
||||
spec = YAML.load(open(swaggerUrl))
|
||||
version = spec['info']['version']
|
||||
puts "VERSION: #{version}"
|
||||
@@ -23,7 +23,7 @@ def clone(lang)
|
||||
Dir.chdir 'tmp'
|
||||
ldir = "functions_#{lang}"
|
||||
if !Dir.exist? ldir
|
||||
cmd = "git clone https://github.com/iron-io/#{ldir}"
|
||||
cmd = "git clone https://github.com/kumokit/#{ldir}"
|
||||
stream_exec(cmd)
|
||||
else
|
||||
Dir.chdir ldir
|
||||
@@ -69,7 +69,7 @@ languages.each do |l|
|
||||
options['gemName'] = gem_name
|
||||
options['moduleName'] = "IronFunctions"
|
||||
options['gemVersion'] = version
|
||||
options['gemHomepage'] = "https://github.com/iron-io/#{fruby}"
|
||||
options['gemHomepage'] = "https://github.com/kumokit/#{fruby}"
|
||||
options['gemSummary'] = 'Ruby gem for IronFunctions'
|
||||
options['gemDescription'] = 'Ruby gem for IronFunctions.'
|
||||
options['gemAuthorEmail'] = 'travis@iron.io'
|
||||
@@ -88,7 +88,7 @@ languages.each do |l|
|
||||
puts "SKIPPING GO, it's manual for now."
|
||||
# This is using https://goswagger.io/ instead
|
||||
# TODO: run this build command instead: this works if run manually
|
||||
# dep ensure --update && docker run --rm -it -v $HOME/dev/go:/go -w /go/src/github.com/iron-io/functions_go quay.io/goswagger/swagger generate client -f https://raw.githubusercontent.com/iron-io/functions/master/docs/swagger.yml -A functions
|
||||
# dep ensure --update && docker run --rm -it -v $HOME/dev/go:/go -w /go/src/github.com/kumokit/functions_go quay.io/goswagger/swagger generate client -f https://raw.githubusercontent.com/kumokit/functions/master/docs/swagger.yml -A functions
|
||||
else
|
||||
gen = JSON.parse(HTTP.post("https://generator.swagger.io/api/gen/clients/#{l}",
|
||||
json: {
|
||||
|
||||
Reference in New Issue
Block a user