coi-gov-pl/puppet-jboss

View on GitHub
lib/puppet_x/coi/jboss/constants.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Constants for COI's JBoss module
module PuppetX::Coi::Jboss::Constants
  ABSENTLIKE = [:absent, :undef, nil].freeze
  ABSENTLIKE_WITH_S = (Proc.new do
    # Proc scope not to leave any helper variables inside the context
    stringified = ABSENTLIKE.reject { |v| v.nil? }.map { |v| v.to_s }
    (ABSENTLIKE + stringified).freeze
  end).call
end