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
>
> 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 <[email protected]>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a0f8f102-10db-4eec-9862-6d162b718ed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to