Sha256: e73e27c2652aa5cceeccd11a1240ee6070fcd11103c315c50dd9019ae56c08e6
Contents?: true
Size: 658 Bytes
Versions: 3
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true require 'csv' require_relative 'model' class Db def fetch_shared_credentials fetch_view('country_view') do |row| Country.from_csv(row) end end def save_country_discovery_site_targets(site_targets = []) site_targets.each do |target| next if target.type == 'host' discovery_site_target = DiscoverySiteTarget.new( site_id: target.site_id, subnet: target.target ) upsert(discovery_site_target) end end def fetch_cyberark_shared_credentials(_country_code) credentials = fetch_shared_credentials credentials.select do |credential| end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
avs-0.1.3 | lib/domain/site_target/db.rb |
avs-0.1.2 | lib/domain/site_target/db.rb |
avs-0.1.1 | lib/domain/site_target/db.rb |