From f342951cb68ea25accc0cc663b3f8913f1f5b7e7 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Wed, 10 Feb 2021 13:38:20 -0700 Subject: [PATCH] rename spot scripts --- eqx-market-convert-spot => eqx-market-spot-convert | 10 +++++----- ...ert-spot-project => eqx-market-spot-convert-project | 8 ++++---- eqx-market-deviceid-spot => eqx-market-spot-deviceid | 0 3 files changed, 9 insertions(+), 9 deletions(-) rename eqx-market-convert-spot => eqx-market-spot-convert (77%) rename eqx-market-convert-spot-project => eqx-market-spot-convert-project (76%) rename eqx-market-deviceid-spot => eqx-market-spot-deviceid (100%) diff --git a/eqx-market-convert-spot b/eqx-market-spot-convert similarity index 77% rename from eqx-market-convert-spot rename to eqx-market-spot-convert index 550b727..6617e94 100755 --- a/eqx-market-convert-spot +++ b/eqx-market-spot-convert @@ -1,11 +1,11 @@ #!/bin/bash -# eqx-market-convert-spot +# eqx-market-spot-convert # Convert a "spot" server into "on demand" server # # Usage: -# eqx-market-convert-spot [device id] +# eqx-market-spot-convert [device id] # Example: -# eqx-market-convert-spot 00000001-2000-3000-4000-500000000000 +# eqx-market-spot-convert 00000001-2000-3000-4000-500000000000 EQXTOKEN=`cat ~/.packet-cli.json | jq ".token" --raw-output` EQXDEVICEID="$1" @@ -30,7 +30,7 @@ generate_post_data() EOF } -echo "Is spot? `eqx-market-deviceid-spot $EQXDEVICEID`" +echo "Is spot? `eqx-market-spot-deviceid $EQXDEVICEID`" echo "Converting to on demand..." @@ -42,5 +42,5 @@ curl \ "https://api.equinix.com/metal/v1/devices/$EQXDEVICEID" \ --data "$(generate_post_data)" 1>/dev/null 2>/dev/null -echo "Is spot? `eqx-market-deviceid-spot $EQXDEVICEID`" +echo "Is spot? `eqx-market-spot-deviceid $EQXDEVICEID`" diff --git a/eqx-market-convert-spot-project b/eqx-market-spot-convert-project similarity index 76% rename from eqx-market-convert-spot-project rename to eqx-market-spot-convert-project index 34480db..86b0fb9 100755 --- a/eqx-market-convert-spot-project +++ b/eqx-market-spot-convert-project @@ -1,11 +1,11 @@ #!/bin/bash -# eqx-market-convert-spot-project +# eqx-market-spot-convert-project # Convert all the devices in a project from spot to on demand pricing. # # Usage: -# eqx-market-convert-spot-project [project name] +# eqx-market-spot-convert-project [project name] # Example: -# eqx-market-convert-spot-project fooproject +# eqx-market-spot-convert-project fooproject EQXPROJECT="$1" @@ -32,6 +32,6 @@ EQXDEVICEIDS=`packet \ for i in $EQXDEVICEIDS do \ echo "Converting $i ..." - eqx-market-convert-spot $i + eqx-market-spot-convert $i done diff --git a/eqx-market-deviceid-spot b/eqx-market-spot-deviceid similarity index 100% rename from eqx-market-deviceid-spot rename to eqx-market-spot-deviceid