Updated client tools to use the new location

git-svn-id: http://svn.opennebula.org/one/trunk@849 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Rubén S. Montero committed 2009-10-12 12:41:14 +00:00
1 parent fe0cd0a481
commit 3d4cd20999
7 files changed
+28 -12

No files matched your search

+4 -2
View File
@@ -52,7 +52,7 @@ end
$: << RUBY_LIB_LOCATION
$: << RUBY_LIB_LOCATION+"/econe"
$: << RUBY_LIB_LOCATION+"/cloud/econe"
require 'EC2QueryClient'
require 'getoptlong'
@@ -118,9 +118,11 @@ if headers
puts "------------------------------------------------------------------------------"
end
images.each { |img|
if images
images.each { |img|
puts fmt % [img['imageOwnerId'],img['imageId'],img['imageLocation']]
}
end
exit 0
+4 -4
View File
@@ -50,9 +50,8 @@ else
RUBY_LIB_LOCATION=ONE_LOCATION+"/lib/ruby"
end
$: << RUBY_LIB_LOCATION
$: << RUBY_LIB_LOCATION+"/econe"
$: << RUBY_LIB_LOCATION+"/cloud/econe"
require 'EC2QueryClient'
require 'getoptlong'
@@ -119,10 +118,11 @@ if headers
puts "------------------------------------------------------------------------------------------------------------"
end
instances.each { |img|
if instances
instances.each { |img|
puts fmt % [owner, img['instanceId'],img['imageId'],img['instanceState']['name'],img['dnsName'],img['instanceType']]
}
end
exit 0
+1 -2
View File
@@ -55,9 +55,8 @@ else
RUBY_LIB_LOCATION=ONE_LOCATION+"/lib/ruby"
end
$: << RUBY_LIB_LOCATION
$: << RUBY_LIB_LOCATION+"/econe"
$: << RUBY_LIB_LOCATION+"/cloud/econe"
require 'EC2QueryClient'
require 'getoptlong'
+1 -1
View File
@@ -54,7 +54,7 @@ end
$: << RUBY_LIB_LOCATION
$: << RUBY_LIB_LOCATION+"/econe"
$: << RUBY_LIB_LOCATION+"/cloud/econe"
require 'EC2QueryClient'
require 'getoptlong'
+1 -1
View File
@@ -53,7 +53,7 @@ end
$: << RUBY_LIB_LOCATION
$: << RUBY_LIB_LOCATION+"/econe"
$: << RUBY_LIB_LOCATION+"/cloud/econe"
require 'EC2QueryClient'
require 'getoptlong'
+1 -2
View File
@@ -52,9 +52,8 @@ else
RUBY_LIB_LOCATION=ONE_LOCATION+"/lib/ruby"
end
$: << RUBY_LIB_LOCATION
$: << RUBY_LIB_LOCATION+"/econe"
$: << RUBY_LIB_LOCATION+"/cloud/econe"
require 'EC2QueryClient'
require 'getoptlong'
+16
View File
@@ -1,4 +1,20 @@
#!/usr/bin/ruby
# -------------------------------------------------------------------------- #
# Copyright 2002-2009, Distributed Systems Architecture Group, Universidad #
# Complutense de Madrid (dsa-research.org) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
$ec2url = nil