summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-04-18 19:48:01 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-05-17 08:59:45 +0000
commit50003c9dd3deb5b2912644723481bdef802e35f7 (patch)
treede3ebb8e2a81237fd1d86ee543f2e0081722d1dd /yarns
parent8bec47f4e087549c1b8d5e02b3aeb1df6ef20db9 (diff)
downloadmorph-50003c9dd3deb5b2912644723481bdef802e35f7.tar.gz
Make `morph list-artifacts` work from definitions checkout
Change-Id: I711953b829c786911c46e413d2b7af3427b7ba26
Diffstat (limited to 'yarns')
-rw-r--r--yarns/implementations.yarn6
-rw-r--r--yarns/noncore-plugins.yarn3
2 files changed, 6 insertions, 3 deletions
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