Skip to content

Commit 2fd967b

Browse files
committed
update notes
1 parent 9571d6e commit 2fd967b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,23 @@ var statefulProcessCommandProxy = new StatefulProcessCommandProxy(
126126
preDestroyCommands: [ 'echo This ProcessProxy is being destroyed!' ]
127127
});
128128
129+
// echo the value of our env variable set above in the constructor config
129130
statefulProcessCommandProxy.executeCommand('echo testEnvVar')
130131
.then(function(cmdResult) {
131132
console.log("testEnvVar value: Stdout: " + cmdResult.stdout);
132133
}).catch(function(error) {
133134
console.log("Error: " + error);
134135
});
135136
137+
// echo the value of our init command that was configured above
136138
statefulProcessCommandProxy.executeCommand('echo testInitVar')
137139
.then(function(cmdResult) {
138140
console.log("testInitVar value: Stdout: " + cmdResult.stdout);
139141
}).catch(function(error) {
140142
console.log("Error: " + error);
141143
});
142144
143-
145+
// test that our invalidation regex above traps and destroys this process instance
144146
statefulProcessCommandProxy.executeCommand('echo "this command has an error and will be '+
145147
' destroyed after check-in because it matches our invalidation regex"')
146148
.then(function(cmdResult) {

0 commit comments

Comments
 (0)