Skip to content

Commit 24c1463

Browse files
committed
Test
1 parent be74180 commit 24c1463

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

cloud-sql-proxy/dist/index.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -132,33 +132,10 @@ function run() {
132132
if (!authenticated) {
133133
core.setFailed('Error authenticating the Cloud SDK.');
134134
}
135-
console.log(process.cwd());
136-
console.log(__dirname);
137-
// const child = spawn('ls', ['-l'], {
138-
// cwd: resolve(__dirname, '../lib'),
139-
// });
140-
// child.stdout.on('data', function (data) {
141-
// console.log('ls command output: ' + data);
142-
// });
143-
// child.stderr.on('data', function (data) {
144-
// console.log('stderr: ' + data);
145-
// });
146-
// child.on('close', function (code) {
147-
// console.log('child process exited with code ' + code);
148-
// });
149135
const child = child_process_1.spawn('./cloud_sql_proxy', [`-instances=${instanceConnectionName}=tcp:${port}`], {
150136
cwd: __webpack_require__.ab + "lib",
151137
detached: true,
152138
});
153-
child.stdout.on('data', function (data) {
154-
console.log('cloud_sql_proxy command output: ' + data);
155-
});
156-
child.stderr.on('data', function (data) {
157-
console.log('stderr: ' + data);
158-
});
159-
child.on('close', function (code) {
160-
console.log('child process exited with code ' + code);
161-
});
162139
child.unref();
163140
}
164141
catch (error) {

cloud-sql-proxy/src/main.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,6 @@ async function run(): Promise<void> {
3030
core.setFailed('Error authenticating the Cloud SDK.');
3131
}
3232

33-
console.log(process.cwd());
34-
console.log(__dirname);
35-
36-
// const child = spawn('ls', ['-l'], {
37-
// cwd: resolve(__dirname, '../lib'),
38-
// });
39-
40-
// child.stdout.on('data', function (data) {
41-
// console.log('ls command output: ' + data);
42-
// });
43-
// child.stderr.on('data', function (data) {
44-
// console.log('stderr: ' + data);
45-
// });
46-
47-
// child.on('close', function (code) {
48-
// console.log('child process exited with code ' + code);
49-
// });
50-
5133
const child = spawn(
5234
'./cloud_sql_proxy',
5335
[`-instances=${instanceConnectionName}=tcp:${port}`],
@@ -56,16 +38,6 @@ async function run(): Promise<void> {
5638
detached: true,
5739
},
5840
);
59-
child.stdout.on('data', function (data) {
60-
console.log('cloud_sql_proxy command output: ' + data);
61-
});
62-
child.stderr.on('data', function (data) {
63-
console.log('stderr: ' + data);
64-
});
65-
66-
child.on('close', function (code) {
67-
console.log('child process exited with code ' + code);
68-
});
6941
child.unref();
7042
} catch (error) {
7143
core.setFailed(error.message);

0 commit comments

Comments
 (0)