class Vcsmap::Plugin::SolrDataconfig
Public Class Methods
new()
click to toggle source
# File lib/vcsmap/plugins/solr_dataconfig.rb, line 4 def initialize @search_string = 'filename:dataConfig.xml+dataSource+JdbcDataSource+password' @url_regex = /url=\"(jdbc(.*?))\"/ @username_regex = /user=\"(.*?)\"/ @password_regex = /password=\"(.*?)\"/ end
Public Instance Methods
credentials(file)
click to toggle source
# File lib/vcsmap/plugins/solr_dataconfig.rb, line 11 def credentials(file) @url = capture_match(@url_regex, file) @user = capture_match(@username_regex, file) @pass = capture_match(@password_regex, file) ['JDBC', @url, @user, @pass] rescue NoMethodError [] end
table_header()
click to toggle source
# File lib/vcsmap/plugins/solr_dataconfig.rb, line 20 def table_header %w(Protocol URL Username Password) end