Sha256: fa451cdf10e2873cbe44be18e64057ea920d131c4eb3ab5b2432838081b6d9ac
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
class TrueNAS < Oxidized::Model using Refinements comment '# ' cmd('uname -a') { |cfg| comment cfg } cmd('cat /etc/version') { |cfg| comment cfg } cmd('sqlite3 "file:///data/freenas-v1.db?mode=ro&immutable=1" .dump') do |cfg| cfg.lines.reject do |line| line.match(/^INSERT INTO storage_replication /) || line.match(/^INSERT INTO system_alert /) || # ignore system alerts in db line.match(/^INSERT INTO sqlite_sequence VALUES\('system_alert',/) # ignore system alerts in db end.join end cfg :ssh do exec true # don't run shell, run each command in exec channel end cfg :ssh do pre_logout 'exit' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.31.0 | lib/oxidized/model/truenas.rb |
oxidized-0.30.1 | lib/oxidized/model/truenas.rb |
oxidized-0.30.0 | lib/oxidized/model/truenas.rb |