Skip to content

Commit 48bef7b

Browse files
committed
rubocop --only Style/YAMLFileRead -a
1 parent 4586e94 commit 48bef7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ task beef_start: 'beef' do
128128
test_pass = ENV['TEST_BEEF_PASS'] || 'bad_fred_no_access'
129129

130130
# write a rake config file for beef
131-
config = YAML.safe_load(File.read('./config.yaml'))
131+
config = YAML.safe_load_file('./config.yaml')
132132
config['beef']['credentials']['user'] = test_user
133133
config['beef']['credentials']['passwd'] = test_pass
134134
Dir.mkdir('tmp') unless Dir.exist?('tmp')

0 commit comments

Comments
 (0)