Skip to content

Commit e13c5a2

Browse files
committed
Add the FrozenStrings magic comment
1 parent 2f027fc commit e13c5a2

File tree

109 files changed

+218
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+218
-1
lines changed

lib/facter/apache_version.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
Facter.add(:apache_version) do
24
confine kernel: ['FreeBSD', 'Linux']
35
setcode do

lib/puppet/functions/apache/apache_pw_hash.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# @summary DEPRECATED. Use the function [`apache::pw_hash`](#apachepw_hash) instead.
24
Puppet::Functions.create_function(:'apache::apache_pw_hash') do
35
dispatch :deprecation_gen do

lib/puppet/functions/apache/bool2httpd.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# @summary
24
# Transform a supposed boolean to On or Off. Passes all other values through.
35
#

lib/puppet/functions/apache/pw_hash.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# @summary
24
# Hashes a password in a format suitable for htpasswd files read by apache.
35
#

lib/puppet/functions/apache_pw_hash.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# @summary DEPRECATED. Use the namespaced function [`apache::pw_hash`](#apachepw_hash) instead.
24
Puppet::Functions.create_function(:apache_pw_hash) do
35
dispatch :deprecation_gen do

lib/puppet/functions/bool2httpd.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# @summary DEPRECATED. Use the namespaced function [`apache::bool2httpd`](#apachebool2httpd) instead.
24
Puppet::Functions.create_function(:bool2httpd) do
35
dispatch :deprecation_gen do

lib/puppet/provider/a2mod.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# a2mod.rb
24
class Puppet::Provider::A2mod < Puppet::Provider
35
# Fetches the mod provider

lib/puppet/provider/a2mod/a2mod.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puppet/provider/a2mod'
24

35
Puppet::Type.type(:a2mod).provide(:a2mod, parent: Puppet::Provider::A2mod) do

lib/puppet/provider/a2mod/gentoo.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puppet/util/filetype'
24
Puppet::Type.type(:a2mod).provide(:gentoo, parent: Puppet::Provider) do
35
desc 'Manage Apache 2 modules on Gentoo'

lib/puppet/provider/a2mod/modfix.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
Puppet::Type.type(:a2mod).provide :modfix do
24
desc "Dummy provider for A2mod.
35
Fake nil resources when there is no crontab binary available. Allows

0 commit comments

Comments
 (0)