Sha256: 4e80e52340223f091e3be5fdc0c7d7c03163b92c0902af693ce128c9c2ba34e3

Contents?: true

Size: 658 Bytes

Versions: 15

Compression:

Stored size: 658 Bytes

Contents

set :ry_path, '$HOME/.local'

task :ry, :env do |_, args|
  unless args[:env]
    puts "Task 'ry' without argument will use default Ruby version."
  end

  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

15 entries across 15 versions & 1 rubygems

Version Path
mina-1.2.4 tasks/mina/ry.rb
mina-1.2.3 tasks/mina/ry.rb
mina-1.2.2 tasks/mina/ry.rb
mina-1.2.1 tasks/mina/ry.rb
mina-1.2.0 tasks/mina/ry.rb
mina-1.1.1 tasks/mina/ry.rb
mina-1.1.0 tasks/mina/ry.rb
mina-1.0.7 tasks/mina/ry.rb
mina-1.0.6 tasks/mina/ry.rb
mina-1.0.5 tasks/mina/ry.rb
mina-1.0.4 tasks/mina/ry.rb
mina-1.0.3 tasks/mina/ry.rb
mina-1.0.2 tasks/mina/ry.rb
mina-1.0.0 tasks/mina/ry.rb
mina-1.0.0.rc2 tasks/mina/ry.rb