Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #81 from raphink/title_patterns
Browse files Browse the repository at this point in the history
Get rid of lambdas in title_patterns
  • Loading branch information
alexjfisher committed Nov 12, 2019
2 parents 9cc0722 + f2c5873 commit d9b7559
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/puppet/type/puppetserver_config.rb
Expand Up @@ -34,21 +34,20 @@
end

def self.title_patterns
identity = ->(x) { x }
[
[
%r{^((\/.+\.conf)\/(.+)\/([^\/]+))$},
[
[:name, identity],
[:target, identity],
[:path, identity],
[:key, identity]
[:name],
[:target],
[:path],
[:key]
]
],
[
%r{(.*)},
[
[:name, identity]
[:name]
]
]
]
Expand Down

0 comments on commit d9b7559

Please sign in to comment.