Sha256: 9cf4a9da197bac09fef7af8b91ae307b3ecabfca4337fffa83e4c9cc101e695d

Contents?: true

Size: 1.77 KB

Versions: 8

Compression:

Stored size: 1.77 KB

Contents

# Gem wrappers

[![Gem Version](https://badge.fury.io/rb/gem-wrappers.png)](http://rubygems.org/gems/gem-wrappers)
[![Code Climate](https://codeclimate.com/github/rvm/gem-wrappers.png)](https://codeclimate.com/github/rvm/gem-wrappers)
[![Coverage Status](https://coveralls.io/repos/rvm/gem-wrappers/badge.png?branch=master)](https://coveralls.io/r/rvm/gem-wrappers?branch=master)
[![Build Status](https://travis-ci.org/rvm/gem-wrappers.png?branch=master)](https://travis-ci.org/rvm/gem-wrappers)
[![Dependency Status](https://gemnasium.com/rvm/gem-wrappers.png)](https://gemnasium.com/rvm/gem-wrappers)
[![Documentation](http://b.repl.ca/v1/yard-docs-blue.png)](http://rubydoc.info/gems/gem-wrappers/frames)

Create gem wrappers for easy use of gems in cron and other system locations.

## Configuration / Defaults

In `~/.gemrc` you can overwrite this defaults:

```ruby
wrappers_path: GEM_HOME/wrappers
wrappers_environment_file: GEM_HOME/environment
wrappers_path_take: 1
```

It is not yet possible to put variables in the configuration,
only relative and full paths will work, open a ticket if you need variables.

## Generating wrappers

By default wrappers are installed when a gem is installed,
to rerun the process for all gems in `GEM_HOME` use:

```bash
gem wrappers regenerate
```

## Showing current configuration

To see paths that are used by gem run:

```bash
gem wrappers
```

## Environment file

User can provide his own `environment` file,
in case it is not available during generating wrappers it will be created using this template:

```erb
export PATH="<%= path.join(":") %>:$PATH"
export GEM_PATH="<%= gem_path.join(":") %>"
export GEM_HOME="<%= gem_home %>"
```

The path elements are calculated using this algorithm:

```ruby
ENV['PATH'].split(":").take(Gem.path.size + path_take)
```

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gem-wrappers-1.1.0 README.md
gem-wrappers-1.0.0 README.md
gem-wrappers-0.9.2 README.md
gem-wrappers-0.9.1 README.md
gem-wrappers-0.9.0 README.md
gem-wrappers-0.8.1 README.md
gem-wrappers-0.8.0 README.md
gem-wrappers-0.7.1 README.md