feature #1265: Remove publish/unpublish from User CLI. Preserve it at the API level as a "syntactic sugar".

This commit is contained in:
Ruben S. Montero committed 2013-04-26 13:34:49 +02:00
1 parent b2ee974718
commit 1c61658e19
3 files changed
+1 -69

No files matched your search

-22
View File
@@ -184,28 +184,6 @@ cmd=CommandParser::CmdParser.new(ARGV) do
end
end
publish_desc = <<-EOT.unindent
DEPRECATED, use chmod instead. Publishes the given Image. A public Image
can be seen and used by other users in the Image's group.
EOT
command :publish, publish_desc, [:range,:imageid_list] do
helper.perform_actions(args[0],options,"published") do |image|
image.publish
end
end
unpublish_desc = <<-EOT.unindent
DEPRECATED, use chmod instead. Unpublishes the given Image. A private
Image can't be used by any other user.
EOT
command :unpublish, unpublish_desc, [:range,:imageid_list] do
helper.perform_actions(args[0],options,"unpublished") do |image|
image.unpublish
end
end
persistent_desc = <<-EOT.unindent
Makes the given Image persistent. A persistent Image saves the changes
made to the contents after the VM instance is shutdown (or in real time
-23
View File
@@ -222,29 +222,6 @@ cmd=CommandParser::CmdParser.new(ARGV) do
exit_code
end
publish_desc = <<-EOT.unindent
DEPRECATED, use chmod instead. Publishes the given Template. A public
Template can be seen and instantiated by other users in the Template's
group.
EOT
command :publish, publish_desc, [:range,:templateid_list] do
helper.perform_actions(args[0],options,"published") do |t|
t.publish
end
end
unpublish_desc = <<-EOT.unindent
DEPRECATED, use chmod instead. Unpublishes the given Template. A private
Template can't be instantiated by any other user.
EOT
command :unpublish, unpublish_desc, [:range,:templateid_list] do
helper.perform_actions(args[0],options,"unpublished") do |t|
t.unpublish
end
end
chgrp_desc = <<-EOT.unindent
Changes the Template group
EOT
+1 -24
View File
@@ -83,7 +83,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
cid = options[:cluster] || ClusterPool::NONE_CLUSTER_ID
helper.create_resource(options) do |vn|
begin
begin
template=File.read(args[0])
vn.allocate(template, cid)
rescue => e
@@ -143,29 +143,6 @@ cmd=CommandParser::CmdParser.new(ARGV) do
end
end
publish_desc = <<-EOT.unindent
DEPRECATED, use chmod instead. Publishes the given Virtual Network.
A public Virtual Network can be seen and used by other users in the
Virtual Network's group.
EOT
command :publish, publish_desc, [:range,:vnetid_list] do
helper.perform_actions(args[0],options,"published") do |vn|
vn.publish
end
end
unpublish_desc = <<-EOT.unindent
DEPRECATED, use chmod instead. Unpublishes the given Virtual Network. A
private Virtual Network can't be used by any other user.
EOT
command :unpublish, unpublish_desc, [:range,:vnetid_list] do
helper.perform_actions(args[0],options,"unpublished") do |vn|
vn.unpublish
end
end
chgrp_desc = <<-EOT.unindent
Changes the Virtual Network group
EOT