mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
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:
1 parent
fe0cd0a481
commit
3d4cd20999
7 files changed
+28
-12
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -54,7 +54,7 @@ end
|
||||
|
||||
|
||||
$: << RUBY_LIB_LOCATION
|
||||
$: << RUBY_LIB_LOCATION+"/econe"
|
||||
$: << RUBY_LIB_LOCATION+"/cloud/econe"
|
||||
|
||||
require 'EC2QueryClient'
|
||||
require 'getoptlong'
|
||||
|
||||
@@ -53,7 +53,7 @@ end
|
||||
|
||||
|
||||
$: << RUBY_LIB_LOCATION
|
||||
$: << RUBY_LIB_LOCATION+"/econe"
|
||||
$: << RUBY_LIB_LOCATION+"/cloud/econe"
|
||||
|
||||
require 'EC2QueryClient'
|
||||
require 'getoptlong'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user