Sha256: ff84250637b3712ffa731e14cfe3c0bad7532f5c257ed03cc73a1e6608addc10

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 Bytes

Contents

module Fog
  module Terremark
    module Vcloud
      class Mock < Fog::Compute::Terremark::Mock
        def initialize(option = {})
          super
          @base_url = Fog::Terremark::Vcloud::SCHEME + "://" +
              Fog::Terremark::Vcloud::HOST +
              Fog::Terremark::Vcloud::PATH

          @terremark_username = options[:terremark_vcloud_username]
        end

        def data
          self.class.data[@terremark_username]
        end

        def reset_data
          self.class.data.delete(@terremark_username)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-terremark-0.0.2 lib/fog/terremark/vcloud/mock.rb
fog-terremark-0.0.1 lib/fog/terremark/vcloud/mock.rb