Sha256: ee6449599f685e43e428c52e878a358fd6a9649393b61934cdcb561f9711dd64

Contents?: true

Size: 429 Bytes

Versions: 18

Compression:

Stored size: 429 Bytes

Contents

module Lumberg
  module Whm
    class Base
      # Whm::Server
      attr_accessor :server

      #
      # ==== Required
      #  * <tt>:server</tt> - PENDING
      def initialize(options = {})
        @server = setup_server options.delete(:server)
      end

      def setup_server(value)
        if value.is_a?(Whm::Server)
          value
        else
          Whm::Server.new value
        end
      end

    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
lumberg-4.1.0 lib/lumberg/whm/base.rb
lumberg-4.0.0 lib/lumberg/whm/base.rb
lumberg-3.1.0 lib/lumberg/whm/base.rb
lumberg-3.0.0 lib/lumberg/whm/base.rb
lumberg-2.0.1 lib/lumberg/whm/base.rb
lumberg-2.0.0 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre20 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre18 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre15 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre12 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre9 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre8 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre7 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre6 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre5 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre4 lib/lumberg/whm/base.rb
lumberg-2.0.0.pre3 lib/lumberg/whm/base.rb
lumberg-1.1.1 lib/lumberg/whm/base.rb