Sha256: e9776a09d8542cea9edd2cbcb1e0409ace846c06b9162e492a29f1a3e00d45f8
Contents?: true
Size: 461 Bytes
Versions: 19
Compression:
Stored size: 461 Bytes
Contents
require 'guignol/commands/base' require 'guignol/models/instance' Guignol::Shell.class_eval do desc 'fixdns [PATTERNS]', 'Make sure the DNS mappings are correct for servers matching PATTERNS' def fixdns(*patterns) patterns.push('.*') if patterns.empty? Guignol::Commands::FixDNS.new(patterns).run end end module Guignol::Commands class FixDNS < Base def run_on_server(instance, options = {}) instance.update_dns end end end
Version data entries
19 entries across 19 versions & 1 rubygems