Sha256: c8f1e25b788fd09bcb017d2b7bdcfccdc3a43613d2ba4a5c27b137537136b56e

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

require 'log4r'
require 'json'

require 'vagrant-conoha/client/heat'
require 'vagrant-conoha/client/keystone'
require 'vagrant-conoha/client/nova'
require 'vagrant-conoha/client/neutron'
require 'vagrant-conoha/client/cinder'
require 'vagrant-conoha/client/glance'

module VagrantPlugins
  module ConoHa
    class Session
      include Singleton

      attr_accessor :token
      attr_accessor :project_id
      attr_accessor :endpoints

      def initialize
        @token = nil
        @project_id = nil
        @endpoints = {}
      end

      def reset
        initialize
      end
    end

    def self.session
      Session.instance
    end

    def self.keystone
      ConoHa::KeystoneClient.instance
    end

    def self.nova
      ConoHa::NovaClient.instance
    end

    def self.heat
      ConoHa::HeatClient.instance
    end

    def self.neutron
      ConoHa::NeutronClient.instance
    end

    def self.cinder
      ConoHa::CinderClient.instance
    end

    def self.glance
      ConoHa::GlanceClient.instance
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vagrant-conoha-0.1.10 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.9 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.8 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.7 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.6 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.5 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.4 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.3 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.2 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.1 lib/vagrant-conoha/client/openstack.rb
vagrant-conoha-0.1.0 lib/vagrant-conoha/client/openstack.rb