Skip to content

Commit

Permalink
Merge pull request #163 from joshperry/environment_isolation
Browse files Browse the repository at this point in the history
Support environment isolation by removing lambdas from title patterns
  • Loading branch information
ekohl authored Jul 6, 2022
2 parents cd6078d + 7f697ee commit 48d3c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/puppet/type/rvm_gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@doc = 'Ruby Gem support using RVM.'

def self.title_patterns
[[/^(?:(.*)\/)?(.*)$/, [[:ruby_version, ->(x) { x }], [:name, ->(x) { x }]]]] # rubocop:disable Style/RegexpLiteral
[[/^(?:(.*)\/)?(.*)$/, [[:ruby_version], [:name]]]] # rubocop:disable Style/RegexpLiteral
end

ensurable do
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/rvm_gemset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@doc = 'Manage RVM Gemsets.'

def self.title_patterns
[[%r{^(?:(.*)@)?(.*)$}, [[:ruby_version, ->(x) { x }], [:name, ->(x) { x }]]]]
[[%r{^(?:(.*)@)?(.*)$}, [[:ruby_version], [:name]]]]
end

ensurable
Expand Down

0 comments on commit 48d3c42

Please sign in to comment.