Permalink
Browse files

add license and copyright

  • Loading branch information...
1 parent 2447e52 commit 0fb5c9f37a5b3919fd739acd19987365910fbd72 Rich Lane committed Mar 22, 2011
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2011 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
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
require 'readline'
require 'pp'
require 'trollop'
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
require 'rbvmomi'
require 'rvc/inventory'
require 'rvc/modules'
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
require 'readline'
require 'rvc/ttl_cache'
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
module RVC
class Location
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::ClusterComputeResource
def self.ls_properties
%w(name summary.effectiveCpu summary.effectiveMemory)
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::ComputeResource
# TODO expand, optimize
def display_info
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::Datacenter
def ls_text r
" (datacenter)"
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::Datastore
def display_info
s, info, = collect :summary, :info
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::DistributedVirtualPortgroup
def display_info
config, = collect(:config)
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::DistributedVirtualSwitch
def display_info
config, = collect(:config)
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::Folder
def traverse_one arc
@soap.searchIndex.FindChild :entity => self, :name => arc
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::HostSystem
def self.ls_properties
%w(name summary.hardware.memorySize summary.hardware.cpuModel
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::ManagedEntity
include RVC::InventoryObject
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::Network
def display_info
summary, = collect(:summary)
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::ResourcePool
def self.ls_properties
%w(name config.cpuAllocation config.memoryAllocation)
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
class RbVmomi::VIM::VirtualMachine
def display_info
config, runtime, guest = collect :config, :runtime, :guest
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
module RVC
module InventoryObject
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
module RVC
ALIASES = {}
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
include RVC::Util
opts :type do
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
opts :download do
summary "Download a file from a datastore"
arg 'datastore-path', "Filename on the datastore"
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
opts :reboot do
summary "Reboot a host"
arg :host, nil, :lookup => VIM::HostSystem, :multi => true
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
URI_REGEX = %r{
^
(?:
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
include RVC::Util
opts :on do
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
include RVC::Util
# TODO windows tmp folder
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
include RVC::Util
VNC = ENV['VNC'] || search_path('vinagre') || search_path('tightvnc')
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
require 'trollop'
module RVC
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
module RVC
module Path
def self.parse path
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
require 'ffi'
module RVC::ReadlineFFI
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
module RVC
class Shell
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
module RVC
class TTLCache
View
@@ -1,3 +1,5 @@
+# Copyright (c) 2011 VMware, Inc. All Rights Reserved.
+
module RVC
module Util
extend self

0 comments on commit 0fb5c9f

Please sign in to comment.