This repository was archived by the owner on May 5, 2023. It is now read-only.
File tree 2 files changed +7
-7
lines changed
lib/puppet/parser/functions
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
module Puppet ::Parser ::Functions
2
2
newfunction ( :scope_defaults , type : :rvalue , doc : <<-EOS
3
- Determine if specified resource defaults have a attribute defined in
4
- current scope.
5
- EOS
3
+ Determine if specified resource defaults have a attribute defined in
4
+ current scope.
5
+ EOS
6
6
) do |arguments |
7
7
if arguments . size != 2
8
8
raise ( Puppet ::ParseError , 'scope_defaults(): Wrong number of arguments ' \
Original file line number Diff line number Diff line change 2
2
3
3
module Puppet ::Parser ::Functions
4
4
newfunction ( :staging_parse , type : :rvalue , doc : <<-EOS
5
- Parse filepath to retrieve information about the file.
6
- EOS
5
+ Parse filepath to retrieve information about the file.
6
+ EOS
7
7
) do |arguments |
8
8
if arguments . empty? || arguments . size > 3
9
9
raise ( Puppet ::ParseError , 'staging_parse(): Wrong number of arguments ' \
10
10
"given (#{ arguments . size } for 1, 2, 3)" )
11
11
end
12
12
13
- source = arguments [ 0 ]
14
- path = URI . parse ( source . tr ( '\\' , '/' ) ) . path
13
+ source = arguments [ 0 ]
14
+ path = URI . parse ( source . tr ( '\\' , '/' ) ) . path
15
15
16
16
if path . nil?
17
17
raise Puppet ::ParseError , "staging_parse(): #{ source . inspect } has no URI " \
You can’t perform that action at this time.
0 commit comments