Sha256: 5d3b3f228bac09b79a34763d5808dbbcd76d560ffe5270f7424135a2546fe544
Contents?: true
Size: 340 Bytes
Versions: 2
Compression:
Stored size: 340 Bytes
Contents
require 'clouddns/actions/generic_action' require 'clouddns/actions/print' require 'clouddns/actions/migrate' module Clouddns module Actions def self.by_name name case name.downcase when 'print' then Print when 'migrate' then Migrate else raise "Unknown action: #{name}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clouddns-0.0.2 | lib/clouddns/actions.rb |
clouddns-0.0.1 | lib/clouddns/actions.rb |