[pkg-eucalyptus-commits] [euca2ools] 11/41: Implement auto-scaling DeleteTags

Charles Plessy plessy at alioth.debian.org
Sat Oct 12 03:24:12 UTC 2013


This is an automated email from the git hooks/post-receive script.

plessy pushed a commit to branch master
in repository euca2ools.

commit 52402ab7d1676df51cda95707867619cd87ce8a6
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Jul 9 17:03:38 2013 -0700

    Implement auto-scaling DeleteTags
    
    Fixes half of TOOLS-351
---
 bin/euscale-delete-tags                      |    6 ++++
 euca2ools/commands/autoscaling/deletetags.py |   32 ++++++++++++++++++
 man/euscale-delete-tags.1                    |   47 ++++++++++++++++++++++++++
 3 files changed, 85 insertions(+)

diff --git a/bin/euscale-delete-tags b/bin/euscale-delete-tags
new file mode 100755
index 0000000..e393781
--- /dev/null
+++ b/bin/euscale-delete-tags
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.deletetags
+
+if __name__ == '__main__':
+    euca2ools.commands.autoscaling.deletetags.DeleteTags.run()
diff --git a/euca2ools/commands/autoscaling/deletetags.py b/euca2ools/commands/autoscaling/deletetags.py
new file mode 100644
index 0000000..7f10041
--- /dev/null
+++ b/euca2ools/commands/autoscaling/deletetags.py
@@ -0,0 +1,32 @@
+# Copyright 2013 Eucalyptus Systems, Inc.
+#
+# Redistribution and use of this software in source and binary forms,
+# with or without modification, are permitted provided that the following
+# conditions are met:
+#
+#   Redistributions of source code must retain the above copyright notice,
+#   this list of conditions and the following disclaimer.
+#
+#   Redistributions in binary form must reproduce the above copyright
+#   notice, this list of conditions and the following disclaimer in the
+#   documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+from euca2ools.commands.autoscaling import AutoScalingRequest
+from euca2ools.commands.autoscaling.arghelpers import TagArg
+
+
+class DeleteTags(AutoScalingRequest):
+    DESCRIPTION = 'Delete one or more resource tags'
+    ARGS = [TagArg(required=True)]
diff --git a/man/euscale-delete-tags.1 b/man/euscale-delete-tags.1
new file mode 100644
index 0000000..8a2e291
--- /dev/null
+++ b/man/euscale-delete-tags.1
@@ -0,0 +1,47 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.41.2.
+.TH EUSCALE-DELETE-TAGS "1" "July 2013" "euca2ools 3.0.0" "User Commands"
+.SH NAME
+euscale-delete-tags \- Delete one or more resource tags
+.SH SYNOPSIS
+euscale\-delete\-tags \fB\-\-tag\fR "k=VALUE, id=VALUE, t=VALUE, v=VALUE,
+p={true,false}" [\-\-region USER at REGION | \fB\-U\fR URL]
+[\-I KEY_ID] [\-S KEY] [\-\-debug] [\-\-debugger]
+[\-\-version] [\-h]
+.SH DESCRIPTION
+Delete one or more resource tags
+.SS "optional arguments:"
+.TP
+\fB\-\-tag\fR "k=VALUE, id=VALUE, t=VALUE, v=VALUE, p={true,false}"
+attributes of a tag to affect. Tags follow the
+following format: "id=resource\-name, t=resource\-type,
+k=tag\-key, v=tag\-val, p=propagate\-at\-launch\-flag",
+where k is the tag's name, v is the tag's value, id is
+a resource ID, t is a resource type, and p is whether
+to propagate tags to instances created by the group. A
+value for 'k=' is required for each tag. The rest are
+optional. This argument may be used more than once.
+Each time affects a different tag. (at least 1
+required)
+.TP
+\fB\-\-region\fR USER at REGION
+name of the region and/or user in config files to use
+to connect to the service
+.TP
+\fB\-U\fR URL, \fB\-\-url\fR URL
+auto\-scaling service endpoint URL
+.HP
+\fB\-I\fR KEY_ID, \fB\-\-access\-key\-id\fR KEY_ID
+.HP
+\fB\-S\fR KEY, \fB\-\-secret\-key\fR KEY
+.TP
+\fB\-\-debug\fR
+show debugging output
+.TP
+\fB\-\-debugger\fR
+launch interactive debugger on error
+.TP
+\fB\-\-version\fR
+show the program's version and exit
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help message and exit

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-eucalyptus/euca2ools.git



More information about the pkg-eucalyptus-commits mailing list