Sha256: 335563c5029a398b29b251e731c20d86c642b58f7dcc5f04db7c2bc01d7b4202

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

require 'clouddns/actions/generic_action'
require 'clouddns/actions/print'
require 'clouddns/actions/migrate'
require 'clouddns/actions/zonefile'

module Clouddns
  module Actions
    def self.by_name name
      case name.downcase
      when 'print' then Print
      when 'migrate' then Migrate
      when 'zonefile' then Zonefile
      else
        raise "Unknown action: #{name}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clouddns-0.0.3 lib/clouddns/actions.rb