Issue #7886 has been updated by Kelsey Hightower. Status changed from In Topic Branch Pending Review to Code Insufficient
---------------------------------------- Feature #7886: support gem repository in a directory in the filesystem https://projects.puppetlabs.com/issues/7886#change-67069 Author: jared jennings Status: Code Insufficient Priority: Normal Assignee: Nigel Kersten Category: provider Target version: Affected Puppet version: 2.6.4 Keywords: Branch: https://github.com/puppetlabs/puppet/pull/181 I want to install gems from a remote repository which is a directory. Call it `/foo`. I got the gem files I want, put them in `/foo/gems`, and ran `gem generate_index -d /foo`. Now of course I want to install the gems with Puppet. The resource type reference says about the gem provider for the package type, "If a URL is passed via `source`, then that URL is used as the remote gem repository." So I write-- <pre> package { "rails": provider => gem, ensure => installed, source => "file:///foo/", } </pre> But instead of running `gem install --source /foo/ rails`, Puppet tries to `gem install /foo/`. A look at the source reveals that URLs with the scheme `file` are always treated as individual gem files, never gem repositories (source:/lib/puppet/provider/package/gem.rb@9bb30181#L83). I don't think it ever makes sense to `gem install` a directory. So I'd like to propose that if I give a `file:` url ending with a slash, it should be treated as a gem repository, not a gem file. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
