Puppet 4 is only supported with the all-in-one packaged Ruby. You don’t choose your own.
> On Feb 20, 2016, at 6:10 PM, Corey Osman <co...@logicminds.biz> wrote: > > The gem requires puppet 3.8+. So whatever version of ruby puppet runs on is > supported by puppet-repl. > > If you want to run ruby 2.3 I would suggest using puppet 4.3+. But I am not > even sure puppet 4.3 runs on ruby 2.3 yet. > > On Friday, February 19, 2016 at 3:04:39 PM UTC-8, Corey Osman wrote: > Hi, > > I created a REPL for the puppet language this week. This is something that > has been lacking for quite some time. > > > https://github.com/nwops/puppet-repl <https://github.com/nwops/puppet-repl> > > Install: gem install puppet-repl > bash$ prepl > > > It is currently at version 0.0.1 but is still very functional. > > > MacBook-Pro-2~ % prepl > Puppet Version: 4.2.2 > Puppet Repl Version: 0.0.1 > Created by: NWOps <co...@nwops.io <mailto:co...@nwops.io>> > Type "exit", "functions", "types", "reset", "help" for more information. > > >> $hostname = 'node123.company.com <http://node123.company.com/>' > => node123.company.com <http://node123.company.com/> > >> $hostname =~ /node/ > => true > >> split($hostname, 'node') > => ["", "123.company.com <http://123.company.com/>"] > >> ['/tmp/test1', '/tmp/test2'].each |String $file_path| { file{$file_path: > >> ensure => present}} > => ["/tmp/test1", "/tmp/test2"] > >> ['/tmp/test1', '/tmp/test2'].each |String $file_path| { file{$file_path: > >> ensure => present}} > => Evaluation Error: Error while evaluating a Resource Statement, Duplicate > declaration: File[/tmp/test1] is already declared in file :1; cannot > redeclare at line 1 at line 1:57 > >> > > > > Corey > > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com > <mailto:puppet-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/a0f8f102-10db-4eec-9862-6d162b718ed5%40googlegroups.com > > <https://groups.google.com/d/msgid/puppet-users/a0f8f102-10db-4eec-9862-6d162b718ed5%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- Jo Rhett Net Consonance : net philanthropy to improve open source and internet projects. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/FBE71E5F-0EF8-479E-957F-B7845573AE9D%40netconsonance.com. For more options, visit https://groups.google.com/d/optout.