{"id":19722686,"url":"https://github.com/mina-deploy/mina-version_managers","last_synced_at":"2025-04-29T22:30:41.351Z","repository":{"id":45049135,"uuid":"444830417","full_name":"mina-deploy/mina-version_managers","owner":"mina-deploy","description":"Mina plugin for version manager tasks","archived":false,"fork":false,"pushed_at":"2022-01-12T15:39:26.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-17T11:19:46.494Z","etag":null,"topics":["chruby","mina","plugin","rbenv","ruby","rvm","ry"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/mina-version_managers","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mina-deploy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-05T14:17:52.000Z","updated_at":"2024-05-17T16:52:52.000Z","dependencies_parsed_at":"2022-09-23T11:10:29.554Z","dependency_job_id":null,"html_url":"https://github.com/mina-deploy/mina-version_managers","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mina-deploy%2Fmina-version_managers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mina-deploy%2Fmina-version_managers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mina-deploy%2Fmina-version_managers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mina-deploy%2Fmina-version_managers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mina-deploy","download_url":"https://codeload.github.com/mina-deploy/mina-version_managers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251592928,"owners_count":21614442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chruby","mina","plugin","rbenv","ruby","rvm","ry"],"created_at":"2024-11-11T23:18:07.977Z","updated_at":"2025-04-29T22:30:40.791Z","avatar_url":"https://github.com/mina-deploy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mina::VersionManagers\n\n[Mina](https://github.com/mina-deploy/mina) plugin with tasks for version managers, including [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), [rvm](https://github.com/rvm/rvm), and [ry](https://github.com/jneen/ry).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'mina-version_managers'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install mina-version_managers\n\n## Usage\n\nThe following sections explain how to use tasks for each version manager.\n\n### chruby\n\nRequire chruby tasks:\n```ruby\n# config/deploy.rb\nrequire 'mina/version_managers/chruby'\n```\n\nThis will load three tasks: `chruby:load`, `chruby:set`, and `chruby`.\n\n#### chruby:load\n\nLoads the chruby environment from the given path (default path is `/etc/profile.d/chruby.sh`). You can also override it:\n```ruby\n# config/deploy.rb\nset :chruby_path, 'mypath/chruby.sh'\n```\nSee [chruby docs](https://github.com/postmodern/chruby#configuration) for path details.\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    invoke :'chruby:load'\n  end\nend\n```\n\n#### chruby:set\n\nSets current Ruby version, which must be provided as an argument.\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    invoke :'chruby:set', '3.0.0' # sets current Ruby version to 3.0.0\n  end\nend\n```\n\n#### chruby\n\nConvenience task which invokes `chruby:load` and `chruby:set`. Ruby version must be provided as an argument.\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    invoke :chruby, '3.0.0' # loads chruby environment and sets current Ruby version to 3.0.0\n  end\nend\n```\n\n### rbenv\n\nRequire rbenv task:\n```ruby\n# config/deploy.rb\nrequire 'mina/version_managers/rbenv'\n```\n\nThis will load a single task: `rbenv:load`.\n\n#### rbenv:load\n\nAdds rbenv root path to the `PATH` environment variable, and executes `rbenv init`. Default rbenv root path is `$HOME/.rbenv`, but you can override it:\n```ruby\n# config/deploy.rb\nset :rbenv_path, 'mypath/.rbenv'\n```\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    invoke :'rbenv:load'\n  end\nend\n```\n\n### RVM\n\nRequire RVM tasks:\n```ruby\n# config/deploy.rb\nrequire 'mina/version_managers/rvm'\n```\n\nThis will load three tasks: `rvm:load`, `rvm:use`, and `rvm:wrapper`.\n\n#### rvm:load\n\nLoads RVM from the given path. Default path is `$HOME/.rvm/scripts/rvm`, but it can be overriden:\n```ruby\n# config/deploy.rb\nset :rvm_use_path, 'mypath'\n```\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    invoke :'rvm:load'\n  end\nend\n```\n\n#### rvm:use\n\nLoads RVM (by invoking `rvm:load`) and sets current Ruby version, which should be provided as an argument.\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    invoke :'rvm:use', '3.0.0' # loads RVM and changes current Ruby version to 3.0.0\n  end\nend\n```\n\n#### rvm:wrapper\n\nCreates an RVM wrapper for the given environment and binary which will be wrapped.\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    # creates a wrapper called `myapp` for the binary `unicorn_rails` in the environment `3.0.0`\n    invoke :'rvm:wrapper', '3.0.0', 'myapp', 'unicorn_rails'\n  end\nend\n```\n\n### ry\n\nRequire ry tasks:\n```ruby\n# config/deploy.rb\nrequire 'mina/version_managers/ry'\n```\n\nThis will load three tasks: `ry:load`, `ry:use` and `ry`.\n\n#### ry:load\n\nAdds ry path to the `PATH` environment variable, and executes `ry setup`. Default ry path is `$HOME/.local`, but you can override it:\n```ruby\n# config/deploy.rb\nset :ry_path, 'mypath/.local'\n```\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    invoke :'ry:load'\n  end\nend\n```\n\n#### ry:use\n\nSets current Ruby version, which can be provided as an argument. If you don't provide a version, the default Ruby version will be used.\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    invoke :'ry:use', '3.0.0' # or don't set a param if you want to use the default version\n  end\nend\n```\n\n#### ry\n\nConvenience task which invokes `ry:load` and `ry:use`. Ruby version can be provided as an argument or left blank to use the default version (same as `ry:use`).\n\nExample usage:\n```ruby\n# config/deploy.rb\ntask :deploy do\n  deploy do\n    invoke :ry, '3.0.0'\n  end\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rspec` to run the tests.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/mina-deploy/mina-version_managers. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/mina-version_managers/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Mina::VersionManagers project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/mina-version_managers/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmina-deploy%2Fmina-version_managers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmina-deploy%2Fmina-version_managers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmina-deploy%2Fmina-version_managers/lists"}