What version of ruby are you targeting? Running Ruby 2.3.0 gave me this.
´´´ /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb:42:in `<top (required)>': uninitialized constant Syck (NameError) from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:197:in `<module:YAML>' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:132:in `<top (required)>' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor/require_vendored.rb:4:in `<top (required)>' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor.rb:40:in `require_libs' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor.rb:53:in `load_vendored' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet.rb:174:in `<module:Puppet>' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet.rb:29:in `<top (required)>' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/lib/puppet-repl/cli.rb:1:in `<top (required)>' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/lib/puppet-repl.rb:1:in `require_relative' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/lib/puppet-repl.rb:1:in `<top (required)>' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/bin/prepl:3:in `require_relative' from /Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/bin/prepl:3:in `<top (required)>' from /Users/lsc/.rbenv/versions/2.3.0/bin/prepl:22:in `load' from /Users/lsc/.rbenv/versions/2.3.0/bin/prepl:22:in `<main>' ´´´ -- Lowe Schmidt | +46 723 867 157 On 20 February 2016 at 00:25, Rich Burroughs <r...@richburroughs.com> wrote: > Wow! I can't wait to have a look at this. > > > Rich > > On Fri, Feb 19, 2016 at 3:04 PM Corey Osman <co...@logicminds.biz> 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 >> >> 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> >> Type "exit", "functions", "types", "reset", "help" for more information. >> >> >> $hostname = 'node123.company.com' >> => node123.company.com >> >> $hostname =~ /node/ >> => true >> >> split($hostname, 'node') >> => ["", "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. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/5D035294-B3D9-450B-A0E3-4882858B2008%40nwops.io >> <https://groups.google.com/d/msgid/puppet-users/5D035294-B3D9-450B-A0E3-4882858B2008%40nwops.io?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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/CAPGcbtAc9vkuSf%2BuQX5jjrRA3Pfmeb3SZUhz0O2Vw6Ak0PTc1g%40mail.gmail.com > <https://groups.google.com/d/msgid/puppet-users/CAPGcbtAc9vkuSf%2BuQX5jjrRA3Pfmeb3SZUhz0O2Vw6Ak0PTc1g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAC-wWcROypnxZn%2BHGAdqd_BQxTtzSw0SosYwUC07C1FRgEb1mg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.