/usr/lib/ruby/1.9.1/diakonos/about.rb is in diakonos 0.9.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | module Diakonos
class Diakonos
def about_write
File.open( @about_filename, "w" ) do |f|
inst = ::Diakonos::INSTALL_SETTINGS
configs = @configs.map { |h|
source = h[:source] ? "(included by #{h[:source]})" : ''
"#{h[:filename]}\t#{source}"
}.join("\n")
ext_loaded = @extensions.loaded_extensions.sort_by { |e|
e.name.downcase
}.map { |e|
%{
### #{e.name} #{e.version}
#{e.description}
}.strip
}.join( "\n\n" )
ext_not_loaded = @extensions.not_loaded_extensions.sort.map { |e|
"### #{e} (NOT LOADED)"
}.join( "\n" )
f.puts %{
# About Diakonos
Licence: MIT Licence
Copyright: Copyright (c) 2004-#{ Time.now.year } Pistos
## Version
Version: #{ ::Diakonos::VERSION }
Code Date: #{ ::Diakonos::LAST_MODIFIED }
Install Time: #{ File.mtime( File.join( inst[ :lib_dir ], 'diakonos', 'installation.rb' ) ) }
## Paths
Home dir: #{ @diakonos_home }
### Installation
Prefix: #{ inst[ :prefix ] }
Executable dir: #{ inst[ :bin_dir ] }
Help dir: #{ inst[ :help_dir ] }
System config dir: #{ inst[ :conf_dir ] }
System library dir: #{ inst[ :lib_dir ] }
### Configuration Files
#{ configs }
## Extensions
#{ ext_loaded }
#{ ext_not_loaded }
}.strip
end
end
end
end
|