aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/dummy/bin/yarn
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-07-31 15:21:22 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-07-31 15:21:22 -0400
commit9330d01ada9ce6768d14c59b99cd3860e209737a (patch)
treee4328b4e59b52dae35241f835f786641d1ff8595 /activestorage/test/dummy/bin/yarn
parent0d58e7e478e79c2d6b2a39a4444d2a17a903b2a6 (diff)
parent3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58 (diff)
downloadrails-9330d01ada9ce6768d14c59b99cd3860e209737a.tar.gz
rails-9330d01ada9ce6768d14c59b99cd3860e209737a.tar.bz2
rails-9330d01ada9ce6768d14c59b99cd3860e209737a.zip
Add 'activestorage/' from commit '3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58'
git-subtree-dir: activestorage git-subtree-mainline: 0d58e7e478e79c2d6b2a39a4444d2a17a903b2a6 git-subtree-split: 3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58
Diffstat (limited to 'activestorage/test/dummy/bin/yarn')
-rwxr-xr-xactivestorage/test/dummy/bin/yarn11
1 files changed, 11 insertions, 0 deletions
diff --git a/activestorage/test/dummy/bin/yarn b/activestorage/test/dummy/bin/yarn
new file mode 100755
index 0000000000..c2bacef836
--- /dev/null
+++ b/activestorage/test/dummy/bin/yarn
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+VENDOR_PATH = File.expand_path('..', __dir__)
+Dir.chdir(VENDOR_PATH) do
+ begin
+ exec "yarnpkg #{ARGV.join(" ")}"
+ rescue Errno::ENOENT
+ $stderr.puts "Yarn executable was not detected in the system."
+ $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
+ exit 1
+ end
+end