Mercurial > repos > other > Puppet
comparison modules/stdlib/lib/puppet/parser/functions/pry.rb @ 275:d9352a684e62
Mass update of modules to remove deprecation warnings
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 26 Jan 2020 11:36:07 +0000 |
parents | c42fb28cff86 |
children | 4a2ee7e3b110 |
comparison
equal
deleted
inserted
replaced
274:b2571c28fc27 | 275:d9352a684e62 |
---|---|
1 # | 1 # |
2 # pry.rb | 2 # pry.rb |
3 # | 3 # |
4 module Puppet::Parser::Functions | 4 module Puppet::Parser::Functions |
5 newfunction(:pry, :type => :statement, :doc => <<-DOC | 5 newfunction(:pry, :type => :statement, :doc => <<-DOC |
6 This function invokes a pry debugging session in the current scope object. This is useful for debugging manifest code at specific points during a compilation. | 6 @summary |
7 This function invokes a pry debugging session in the current scope object. | |
8 This is useful for debugging manifest code at specific points during a compilation. | |
7 | 9 |
8 *Examples:* | 10 @return |
11 debugging information | |
9 | 12 |
10 pry() | 13 @example **Usage** |
14 | |
15 `pry()` | |
16 | |
11 DOC | 17 DOC |
12 ) do |arguments| | 18 ) do |arguments| |
13 begin | 19 begin |
14 require 'pry' | 20 require 'pry' |
15 rescue LoadError | 21 rescue LoadError |