Sha256: 80d6e624010fc10a93c006134534c66732f3279791dd3e7d007f31cc1abb0e02
Contents?: true
Size: 418 Bytes
Versions: 7
Compression:
Stored size: 418 Bytes
Contents
module Sunzi class Cloud def initialize(cli, provider) @subject = case provider when 'linode' Sunzi::Cloud::Linode.new(cli, provider) when 'digital_ocean' Sunzi::Cloud::DigitalOcean.new(cli, provider) else abort_with "#{provider} is not valid!" end end def method_missing(sym, *args, &block) @subject.send sym, *args, &block end end end
Version data entries
7 entries across 7 versions & 1 rubygems