File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,13 @@ exports.builder = (yargs) => (
172
172
type : 'boolean' ,
173
173
default : false ,
174
174
} )
175
+ . option ( 'mutagen-dir' , {
176
+ describe : 'custom mutagen dir' ,
177
+ default : process . cwd ( ) ,
178
+ } )
179
+ . option ( 'mutagen-working-dir' , {
180
+ describe : 'custom mutagen working dir' ,
181
+ } )
175
182
. option ( 'exec-user' , {
176
183
alias : 'euser' ,
177
184
describe : 'user to run setup commands with' ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ exports.handler = async (argv) => {
52
52
mode : 'two-way-resolved' ,
53
53
} ,
54
54
code : {
55
- alpha : process . cwd ( ) ,
55
+ alpha : argv . mutagenDir ,
56
56
beta : 'volume://makeomatic-deploy-code' ,
57
57
} ,
58
58
} ,
@@ -107,11 +107,12 @@ async function tester(compose, argv) {
107
107
command : defaultCmd ,
108
108
} , argv . extras . tester ) ;
109
109
const workingDir = testerConfig . working_dir ;
110
+ const mutagenWorkingDir = ( argv . isMutagen && argv . mutagenWorkingDir ) || workingDir ;
110
111
const workingVolume = `\${PWD}:${ workingDir } ` ;
111
112
const volumes = testerConfig . volumes . filter ( ( volume ) => volume !== workingVolume ) ;
112
113
113
114
volumes . push (
114
- argv . isMutagen ? `makeomatic-deploy-code:${ workingDir } ` : workingVolume
115
+ argv . isMutagen ? `makeomatic-deploy-code:${ mutagenWorkingDir } ` : workingVolume
115
116
) ;
116
117
117
118
if ( argv . mirror ) {
You can’t perform that action at this time.
0 commit comments