1- import axios , { AxiosResponse } from 'axios'
21import Debug from 'debug'
32import diff from 'deep-diff'
43import { rmSync } from 'fs'
@@ -16,10 +15,8 @@ import {
1615 GIT_PUSH_RETRIES ,
1716 GIT_REPO_URL ,
1817 GIT_USER ,
19- TOOLS_HOST ,
2018} from 'src/validators'
2119import { parse as parseYaml , stringify as stringifyYaml } from 'yaml'
22- import { BASEURL } from './constants'
2320import { GitPullError } from './error'
2421import { Core } from './otomi-models'
2522import { getSanitizedErrorMessage , removeBlankAttributes , sanitizeGitPassword } from './utils'
@@ -33,12 +30,8 @@ const env = cleanEnv({
3330 GIT_REPO_URL ,
3431 GIT_USER ,
3532 GIT_PUSH_RETRIES ,
36- TOOLS_HOST ,
3733} )
3834
39- const baseUrl = BASEURL
40- const valuesUrl = `${ baseUrl } /otomi/values`
41-
4235const getProtocol = ( url ) : string => ( url && url . includes ( '://' ) ? url . split ( '://' ) [ 0 ] : 'http' )
4336
4437const getUrl = ( url ) : string => ( ! url || url . includes ( '://' ) ? url : `${ getProtocol ( url ) } ://${ url } ` )
@@ -92,12 +85,6 @@ export class Git {
9285 return getProtocol ( this . url )
9386 }
9487
95- async requestValues ( params ) : Promise < AxiosResponse > {
96- debug ( `Tools: requesting "otomi/values" ${ this . path } ` )
97- const res = await axios . get ( valuesUrl , { params : { envDir : this . path , ...params } } )
98- return res
99- }
100-
10188 async addConfig ( ) : Promise < void > {
10289 debug ( `Adding git config` )
10390 await this . git . addConfig ( 'user.name' , this . user )
0 commit comments