Skip to content

Commit 4c5898c

Browse files
committed
Add the FrozenStrings magic comment
1 parent 426ad9d commit 4c5898c

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

lib/puppet/provider/exec/powershell.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/exec'
24

35
Puppet::Type.type(:exec).provide :powershell, :parent => Puppet::Provider::Exec do

lib/puppet/provider/exec/pwsh.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/exec'
24

35
Puppet::Type.type(:exec).provide :pwsh, :parent => Puppet::Provider::Exec do

spec/acceptance/exec_powershell_spec.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 'spec_helper_acceptance'
24

35
describe 'powershell provider:', if: (os[:family] == 'windows') do

spec/acceptance/exec_pwsh_spec.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 'spec_helper_acceptance'
24

35
def windows_platform?

spec/spec_helper_acceptance_local.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_litmus'
24
require 'puppet_litmus/util'
35
require 'singleton'

spec/unit/provider/exec/powershell_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#! /usr/bin/env ruby
2+
# frozen_string_literal: true
3+
24
require 'spec_helper'
35
require 'puppet/util'
46
require 'fileutils'

spec/unit/provider/exec/pwsh_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#! /usr/bin/env ruby
2+
# frozen_string_literal: true
3+
24
require 'spec_helper'
35
require 'puppet/util'
46
require 'ruby-pwsh'

0 commit comments

Comments
 (0)