diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-11-17 17:54:07 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-11-17 17:59:40 +0200 |
commit | 3e2360d383d8e7503a8afe07291ab8c0b1182a14 (patch) | |
tree | 69725e6a523701dd297a7bc5d228dac43371b32d /etc/terminate-instances.fln | |
parent | 966cc92ffcc7e5d070103d33f605bc1691229022 (diff) | |
download | eclat-3e2360d383d8e7503a8afe07291ab8c0b1182a14.tar.gz eclat-3e2360d383d8e7503a8afe07291ab8c0b1182a14.tar.bz2 |
Implement the terminate-instances command
* TODO: Update.
* doc/Makefile.inc: Add new files.
* doc/eclat-mkinst.1: Mention the terminate command.
* doc/eclat-terminate.1: New file.
* etc/Makefile.am: Add new files.
* etc/terminate-instances.fln: New file.
* src/eclat.c (cmdtab): Register new command.
* src/eclat.h (eclat_terminate_instances): New proto.
* src/startstop.c (eclat_terminate_instances): New function.
* tests/Makefile.am: Add new test.
* tests/testsuite.at: Likewise.
* tests/terminate-instances.at: New test.
Diffstat (limited to 'etc/terminate-instances.fln')
-rw-r--r-- | etc/terminate-instances.fln | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/terminate-instances.fln b/etc/terminate-instances.fln new file mode 100644 index 0000000..12995c3 --- /dev/null +++ b/etc/terminate-instances.fln @@ -0,0 +1,23 @@ +/* This file is part of Eclat. + Copyright (C) 2012-2018 Sergey Poznyakoff. + + Eclat is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + Eclat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ + +if (.TerminateInstancesResponse) { + for (var in .TerminateInstancesResponse.instancesSet.item) { + print(var.instanceId,": ", + var.previousState.name," => ", + var.currentState.name,"\n"); + } +} |