Class: GhBbAudit::OutputWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/gh_bb_audit/output_writer.rb

Instance Method Summary collapse

Constructor Details

#initialize(path_to_file) ⇒ OutputWriter

Returns a new instance of OutputWriter.



3
4
5
# File 'lib/gh_bb_audit/output_writer.rb', line 3

def initialize(path_to_file)
	@fhandle = File.open(path_to_file, 'w+') 
end

Instance Method Details

#closeObject



11
12
13
# File 'lib/gh_bb_audit/output_writer.rb', line 11

def close
  @fhandle.close
end

#write_red_flag_record(user_name, repo_name) ⇒ Object



7
8
9
# File 'lib/gh_bb_audit/output_writer.rb', line 7

def write_red_flag_record(user_name, repo_name)
  @fhandle.puts("Something fishy in REPO::#{repo_name} for USER:: #{user_name}")
end