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

Version Path
guignol-0.3.16 lib/guignol/commands/fix_dns.rb
guignol-0.3.15 lib/guignol/commands/fix_dns.rb
guignol-0.3.14 lib/guignol/commands/fix_dns.rb
guignol-0.3.13 lib/guignol/commands/fix_dns.rb
guignol-0.3.12 lib/guignol/commands/fix_dns.rb
guignol-0.3.10 lib/guignol/commands/fix_dns.rb
guignol-0.3.9 lib/guignol/commands/fix_dns.rb
guignol-0.3.8 lib/guignol/commands/fix_dns.rb
guignol-0.3.7 lib/guignol/commands/fix_dns.rb
guignol-0.3.6.2 lib/guignol/commands/fix_dns.rb
guignol-0.3.6.1 lib/guignol/commands/fix_dns.rb
guignol-0.3.6 lib/guignol/commands/fix_dns.rb
guignol-0.3.5.1 lib/guignol/commands/fix_dns.rb
guignol-0.3.5 lib/guignol/commands/fix_dns.rb
guignol-0.3.4 lib/guignol/commands/fix_dns.rb
guignol-0.3.3 lib/guignol/commands/fix_dns.rb
guignol-0.3.2 lib/guignol/commands/fix_dns.rb
guignol-0.3.1 lib/guignol/commands/fix_dns.rb
guignol-0.3.0 lib/guignol/commands/fix_dns.rb