Sha256: 6f940b6718118a6517955368f10c159522e4bb1e9021dc0c1ef5e5af9cc2f840

Contents?: true

Size: 1.17 KB

Versions: 13

Compression:

Stored size: 1.17 KB

Contents

# This file is part of the OpenStack-ActiveResource
#
# Copyright (C) 2012 Unidata S.p.A. (Davide Guerri - d.guerri@unidata.it)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

module OpenStack
  module Nova
    module Volume

      class Base < OpenStack::Common

        def self.site
          if self == OpenStack::Nova::Volume::Base
            Thread.current[:open_stack_nova_volume_site]
          else
            super
          end
        end

        def self.site=(site)
          super(site)
          Thread.current[:open_stack_nova_volume_site] = @site
        end

      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
openstack_activeresource-0.1.13 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.12 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.11 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.10 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.9 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.8 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.7 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.6 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.5 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.4 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.3 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.2 lib/open_stack/nova/volume/base.rb
openstack_activeresource-0.1.1 lib/open_stack/nova/volume/base.rb