Sha256: 0fd535f18c7462cf85385e731e76ff5a5d8e337c0c75f7302f77a134005e85b7
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true set :ry_path, '$HOME/.local' task :ry, :env do |_, args| puts "Task 'ry' without argument will use default Ruby version." unless args[:env] comment %(ry to version: \\"#{args[:env] || '**not specified**'}\\") comment %(Loading ry) command %( if [[ ! -e "#{fetch(:ry_path)}/bin" ]]; then echo "! ry not found" echo "! If ry is installed, check your :ry_path setting." exit 1 fi ) command %(export PATH="#{fetch(:ry_path)}/bin:$PATH") command %{eval "$(ry setup)"} command %(RY_RUBY="#{args[:env]}") command %( if [ -n "$RY_RUBY" ]; then #{echo_cmd 'ry use $RY_RUBY'} || exit 1 fi ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mina-1.2.5 | tasks/mina/ry.rb |