Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Update copyright and license information
Browse files Browse the repository at this point in the history
- updated copyright information in all files
- updated email and license informaiton in Gem specification
- added SPDX short identifier to all files
  • Loading branch information
jrgarcia committed Feb 17, 2017
1 parent 72a0587 commit 2e42781
Show file tree
Hide file tree
Showing 71 changed files with 216 additions and 17 deletions.
3 changes: 3 additions & 0 deletions Gemfile
@@ -1,3 +1,6 @@
# Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

source 'https://rubygems.org'

gemspec
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (c) 2010 VMware, Inc. All Rights Reserved.
Copyright (c) 2010-2017 VMware, Inc. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 3 additions & 0 deletions Rakefile
@@ -1,3 +1,6 @@
# Copyright (c) 2010-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'yard'
Expand Down
3 changes: 3 additions & 0 deletions devel/analyze-vim-declarations.rb 100755 → 100644
@@ -1,3 +1,6 @@
# Copyright (c) 2010-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
require 'nokogiri'
require 'pp'
Expand Down
3 changes: 3 additions & 0 deletions devel/analyze-xml.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2010-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'nokogiri'

# removes line breaks and whitespace between xml nodes.
Expand Down
3 changes: 3 additions & 0 deletions devel/benchmark.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
require 'tempfile'

Expand Down
3 changes: 3 additions & 0 deletions devel/collisions.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
# Find collisions between VMODL property names and Ruby methods
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions devel/merge-internal-vmodl.rb 100755 → 100644
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
# These types are not public and so may change between releases. Do not
# use them directly.
Expand Down
3 changes: 3 additions & 0 deletions devel/merge-manual-vmodl.rb 100755 → 100644
@@ -1,3 +1,6 @@
# Copyright (c) 2013-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
# Manually merge two versions of vmodl.db

Expand Down
3 changes: 3 additions & 0 deletions examples/annotate.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'trollop'
require 'rbvmomi'
require 'rbvmomi/trollop'
Expand Down
3 changes: 3 additions & 0 deletions examples/cached_ovf_deploy.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2012-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/clone_vm.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/create_vm-1.9.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/create_vm.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/extraConfig.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'trollop'
require 'rbvmomi'
require 'rbvmomi/trollop'
Expand Down
3 changes: 3 additions & 0 deletions examples/lease_tool.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2012-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/logbundle.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

# @todo Retrieve ESX log bundles when run against VC.
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/logtail.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

# Translation of example 2-2 from the vSphere SDK for Perl Programming Guide
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/nfs_datastore.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/power.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'trollop'
require 'rbvmomi'
require 'rbvmomi/trollop'
Expand Down
3 changes: 3 additions & 0 deletions examples/readme-1.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'rbvmomi'
require 'rbvmomi/trollop'

Expand Down
3 changes: 3 additions & 0 deletions examples/readme-2.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'rbvmomi'
require 'rbvmomi/trollop'

Expand Down
3 changes: 3 additions & 0 deletions examples/screenshot.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

# Based on takeVMScreenshot.pl by William Lam
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/vdf.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

# Translation of vGhetto vdf, originally by William Lam
require 'trollop'
require 'rbvmomi'
Expand Down
3 changes: 3 additions & 0 deletions examples/vm_drs_behavior.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

#!/usr/bin/env ruby
require 'trollop'
require 'rbvmomi'
Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2010 VMware, Inc. All Rights Reserved.
# Copyright (c) 2010-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

module RbVmomi

# @private
Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi/basic_types.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2010 VMware, Inc. All Rights Reserved.
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'pp'
require 'set'

Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi/connection.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2010 VMware, Inc. All Rights Reserved.
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'time'
require 'date'
require 'rbvmomi/trivial_soap'
Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi/deserialization.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'time'

module RbVmomi
Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi/fault.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2010 VMware, Inc. All Rights Reserved.
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

module RbVmomi

class Fault < StandardError
Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi/pbm.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
# Copyright (c) 2012-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'rbvmomi'

module RbVmomi
Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi/sms.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2013 VMware, Inc. All Rights Reserved.
# Copyright (c) 2013-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'rbvmomi'
module RbVmomi

Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/sms/SmsStorageManager.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2013-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

class RbVmomi::SMS::SmsStorageManager

def RegisterProvider_Task2 providerSpec
Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi/trivial_soap.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2010 VMware, Inc. All Rights Reserved.
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'rubygems'
require 'builder'
require 'nokogiri'
Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi/trollop.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
# Copyright (c) 2010-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'trollop'

# Convenience methods for Trollop, Ruby's premier option parser.
Expand Down
4 changes: 3 additions & 1 deletion lib/rbvmomi/type_loader.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2010 VMware, Inc. All Rights Reserved.
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'set'
require 'monitor'

Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/utils/admission_control.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2012-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT


# An admission controlled resource scheduler for large scale vSphere deployments
#
Expand Down
5 changes: 4 additions & 1 deletion lib/rbvmomi/utils/deploy.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2012-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'open-uri'
require 'nokogiri'
require 'rbvmomi'
Expand Down Expand Up @@ -311,4 +314,4 @@ def _wait_for_template_ready vm_folder, vm_name

vm
end
end
end
5 changes: 4 additions & 1 deletion lib/rbvmomi/utils/leases.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2012-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'yaml'

# A class to manage VM leases
Expand Down Expand Up @@ -139,4 +142,4 @@ def filter_expired_vms vms, vmprops, opts = {}
out = Hash[out]
out
end
end
end
3 changes: 3 additions & 0 deletions lib/rbvmomi/utils/perfdump.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2012-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'set'
require 'yaml'

Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/version.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

module RbVmomi
VERSION = '1.9.4'.freeze
end
4 changes: 3 additions & 1 deletion lib/rbvmomi/vim.rb
@@ -1,4 +1,6 @@
# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

require 'rbvmomi'

# Win32::SSPI is part of core on Windows
Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/vim/ComputeResource.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

class RbVmomi::VIM::ComputeResource
# Aggregate cluster information.
#
Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/vim/Datacenter.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

class RbVmomi::VIM::Datacenter
# Traverse the given inventory +path+ to find a ComputeResource.
def find_compute_resource path
Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/vim/Datastore.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

# @note +download+ and +upload+ require +curl+. If +curl+ is not in your +PATH+
# then set the +CURL+ environment variable to point to it.
# @todo Use an HTTP library instead of executing +curl+.
Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/vim/DynamicTypeMgrAllTypeInfo.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

class RbVmomi::VIM::DynamicTypeMgrAllTypeInfo
def toRbvmomiTypeHash
id2name = {}
Expand Down
5 changes: 4 additions & 1 deletion lib/rbvmomi/vim/DynamicTypeMgrDataTypeInfo.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

class RbVmomi::VIM::DynamicTypeMgrDataTypeInfo
def toRbvmomiTypeHash
{
Expand All @@ -17,4 +20,4 @@ def toRbvmomiTypeHash
}
}
end
end
end
3 changes: 3 additions & 0 deletions lib/rbvmomi/vim/DynamicTypeMgrManagedTypeInfo.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

class RbVmomi::VIM::DynamicTypeMgrManagedTypeInfo
def toRbvmomiTypeHash
{
Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/vim/Folder.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

class RbVmomi::VIM::Folder
# Retrieve a child entity
# @param name [String] Name of the child.
Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/vim/HostSystem.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

module RbVmomi

class VIM::HostSystem
Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/vim/ManagedEntity.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

class RbVmomi::VIM::ManagedEntity
# Retrieve the ancestors of the entity.
# @return [Array] Ancestors of this entity, starting with the root.
Expand Down
3 changes: 3 additions & 0 deletions lib/rbvmomi/vim/ManagedObject.rb
@@ -1,3 +1,6 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

class RbVmomi::VIM::ManagedObject
# Wait for updates on an object until a condition becomes true.
#
Expand Down

0 comments on commit 2e42781

Please sign in to comment.