Sha256: ce51d68c6f387ff6e735be0ce03e83f947441cb7d561cd23db72f0afc7649054

Contents?: true

Size: 347 Bytes

Versions: 21

Compression:

Stored size: 347 Bytes

Contents

module Fog
  module Compute
    class Vsphere
      class Real
        def current_time
          current_time = connection.serviceInstance.CurrentTime
          { 'current_time' => current_time }
        end
      end

      class Mock
        def current_time
          { 'current_time' => Time.now.utc }
        end
      end
    end
  end
end

Version data entries

21 entries across 19 versions & 2 rubygems

Version Path
fog-vsphere-2.5.0 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-2.4.0 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-2.3.0 lib/fog/vsphere/requests/compute/current_time.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/requests/compute/current_time.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/requests/compute/current_time.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-2.2.0 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-2.1.1 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-2.1.0 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-2.0.1 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-2.0.0 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-1.13.1 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-1.13.0 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-1.12.0 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-1.11.3 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-1.11.2 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-1.11.1 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-1.11.0 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-1.10.0 lib/fog/vsphere/requests/compute/current_time.rb
fog-vsphere-1.9.2 lib/fog/vsphere/requests/compute/current_time.rb