From 50003c9dd3deb5b2912644723481bdef802e35f7 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 18 Apr 2016 19:48:01 +0000 Subject: Make `morph list-artifacts` work from definitions checkout Change-Id: I711953b829c786911c46e413d2b7af3427b7ba26 --- yarns/implementations.yarn | 6 ++++-- yarns/noncore-plugins.yarn | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'yarns') diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn index eab162b3..705ff14f 100644 --- a/yarns/implementations.yarn +++ b/yarns/implementations.yarn @@ -637,8 +637,10 @@ Implementations for `morph certify` Implementations for `morph list-artifacts` ------------------------------------------ - IMPLEMENTS WHEN the user lists the artifacts which make up the system (\S+) at ref (\S+) in repository (\S+) - attempt_morph list-artifacts "$MATCH_3" "$MATCH_2" "$MATCH_1" + IMPLEMENTS WHEN the user lists the artifacts which make up the system (\S+) at ref (\S+) + cd "$DATADIR/definitions" + git checkout "$MATCH_2" + attempt_morph list-artifacts "$MATCH_1" Implementation sections for building ==================================== diff --git a/yarns/noncore-plugins.yarn b/yarns/noncore-plugins.yarn index d7f532da..0783cda5 100644 --- a/yarns/noncore-plugins.yarn +++ b/yarns/noncore-plugins.yarn @@ -210,7 +210,8 @@ artifact in a system. This name includes the cache key of the artifact. SCENARIO using morph list-artifacts GIVEN a git server - WHEN the user lists the artifacts which make up the system systems/test-system.morph at ref HEAD in repository test:definitions + WHEN the user clones definitions + AND the user lists the artifacts which make up the system systems/test-system.morph at ref HEAD THEN morph succeeded FINALLY the git server is shut down -- cgit v1.2.1