From 0196910f2533c1256c26647a024916c15cf8d7e9 Mon Sep 17 00:00:00 2001 From: Mohd Khairi Mohd Adnan Date: Wed, 31 Oct 2018 00:29:30 +0800 Subject: [PATCH] add support asdf version manager --- tasks/mina/asdf.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tasks/mina/asdf.rb diff --git a/tasks/mina/asdf.rb b/tasks/mina/asdf.rb new file mode 100644 index 00000000..b305b28b --- /dev/null +++ b/tasks/mina/asdf.rb @@ -0,0 +1,13 @@ +set :asdf_path, "$HOME/.asdf" + +task :'asdf:load' do + comment %{Loading asdf} + command %{. $HOME/.asdf/asdf.sh} + command %{ + if ! which asdf >/dev/null; then + echo "! asdf not found" + echo "! If asdf is installed, check your :asdf_path setting." + exit 1 + fi + } +end \ No newline at end of file