class Pact::Provider::Help::PromptText
def self.call reports_dir = Pact.configuration.reports_dir, options = {color: Pact.configuration.color_enabled}
def self.call reports_dir = Pact.configuration.reports_dir, options = {color: Pact.configuration.color_enabled} new(reports_dir, options).call end
def call
def call options[:color] ? prompt_text_colored : prompt_text_plain end
def initialize reports_dir, options
def initialize reports_dir, options @reports_dir = File.expand_path(reports_dir) @options = options end
def prompt_text_colored
def prompt_text_colored C.yellow(prompt_text_plain) end
def prompt_text_plain
def prompt_text_plain "For assistance debugging failures, run `bundle exec rake pact:verify:help#{rake_args}`\n" end
def rake_args
def rake_args if reports_dir == Pact.configuration.default_reports_dir '' else "[#{relative_reports_dir}]" end end
def relative_reports_dir
def relative_reports_dir Pathname.new(reports_dir).relative_path_from(Pathname.new(Dir.pwd)) end