diff --git a/Modulefile b/Modulefile index 3e55647..8b6c0ba 100644 --- a/Modulefile +++ b/Modulefile @@ -1,5 +1,5 @@ name 'jdowning/rbenv' -version '1.2.1' +version '1.3.0' source 'https://github.com/justindowning/puppet-rbenv' author 'Justin Downing' license 'Apache License, Version 2.0' @@ -7,3 +7,4 @@ summary 'Setup rbenv ruby manager for systemwide use' description 'Setup rbenv ruby manager for systemwide use' project_page 'https://github.com/justindowning/puppet-rbenv' dependency 'puppetlabs/git', '>=0.0.3' +dependency 'puppetlabs/stdlib', '>=4.1.0' diff --git a/README.md b/README.md index dd25097..3c88e74 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,13 @@ If you wish to install rbenv somewhere other than the default class { 'rbenv': install_dir => '/opt/rbenv' } +You can also ensure rbenv is kept up-to-date: + + class { 'rbenv': + install_dir => '/opt/rbenv' + latest => true + } + The class will merely setup rbenv on your host. If you wish to install rubies, plugins, or gems, you will have to add those declarations to your manifests as well. @@ -40,6 +47,11 @@ Plugins can be installed from GitHub using the following definiton: rbenv::plugin { 'github_user/github_repo': } +You can ensure a plugin is kept up-to-date. This is helpful for a plugin like +`ruby-build` so that definitions are always available: + + rbenv::plugin { 'sstephenson/ruby-build': latest => true } + ## Gems Gems can be installed too! You *must* specify the `ruby_version` you want to install for. diff --git a/metadata.json b/metadata.json index 9c3564c..013c1e3 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "jdowning/rbenv", - "version": "1.2.1", + "version": "1.3.0", "source": "https://github.com/justindowning/puppet-rbenv", "author": "Justin Downing", "license": "Apache License, Version 2.0",