lib/pact/provider/help/write.rb in pact-1.43.0 vs lib/pact/provider/help/write.rb in pact-1.43.1

- old
+ new

@@ -7,27 +7,27 @@ module Help class Write HELP_FILE_NAME = 'help.md' - def self.call pact_jsons, reports_dir = Pact.configuration.reports_dir - new(pact_jsons, reports_dir).call + def self.call pact_sources, reports_dir = Pact.configuration.reports_dir + new(pact_sources, reports_dir).call end - def initialize pact_jsons, reports_dir - @pact_jsons = pact_jsons + def initialize pact_sources, reports_dir + @pact_sources = pact_sources @reports_dir = File.expand_path(reports_dir) end def call clean_reports_dir write end private - attr_reader :reports_dir, :pact_jsons + attr_reader :reports_dir, :pact_sources def clean_reports_dir raise "Cleaning report dir #{reports_dir} would delete project!" if reports_dir_contains_pwd FileUtils.rm_rf reports_dir FileUtils.mkdir_p reports_dir @@ -44,12 +44,11 @@ def help_path File.join(reports_dir, 'help.md') end def help_text - Content.new(pact_jsons).text + Content.new(pact_sources).text end - end end end end