Skip to content

Commit 82548a7

Browse files
committed
Merge pull request #8 from Runnable/add-has-dockerfile-mirroring-method
Add hasDockerfileMirroring method
2 parents 1bb26f1 + 5483226 commit 82548a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: lib/models/instance.js

+8
Original file line numberDiff line numberDiff line change
@@ -941,3 +941,11 @@ Instance.prototype.isMigrating = function () {
941941
}
942942
return keypather.get(this, 'contextVersion.attrs.dockRemoved');
943943
};
944+
945+
/**
946+
* Is this instance currently mirroring a Dockerfile?
947+
* @return {Boolean}
948+
*/
949+
Instance.prototype.hasDockerfileMirroring = function () {
950+
return !!keypather.get(this, 'contextVersion.attrs.buildDockerfilePath');
951+
};

0 commit comments

Comments
 (0)