We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 188c855 commit 9c833d7Copy full SHA for 9c833d7
centos-ruby-builder/bin/restore-artifacts
@@ -0,0 +1,3 @@
1
+#!/bin/bash
2
+
3
+tar -C / -xf -
centos-ruby-builder/bin/save-artifacts
+tar -cf - /opt/ruby/bundle
centos-ruby-builder/bin/start
@@ -11,6 +11,13 @@ source ${HOME}/etc/helpers
11
# If the /tmp/src is empty, then print usage and exit.
12
(dir_is_empty /tmp/src) && print_usage_and_exit
13
14
+# Detect presence of $stdin and restore the artifacts
15
+#
16
+if [ -p /dev/stdin ]; then
17
+ echo "---> Restoring artifacts from STDIN"
18
+ cat | /opt/ruby/bin/restore-artifacts
19
+fi
20
21
# Build the ruby application first
22
#
23
${HOME}/bin/prepare
0 commit comments