Commit graph

65 commits

Author SHA1 Message Date
Brian Cain
c6cf86669a Cleanup vmfloaty library and command line functions 2015-11-15 14:24:24 -08:00
Brian Cain
c1689da3c4 (#13) Raise exception when required params are missing
Instead of doing a system exit and printing to stderr, raise an
exception if parameters are missing when attempting to make an http
connection.
2015-11-15 13:33:21 -08:00
Brian Cain
3394a14ea0 (#14) Remove printing in auth library 2015-11-15 13:27:07 -08:00
Brian Cain
544d9d35b8 Bump to version 0.2.15 2015-11-13 11:54:16 -08:00
Brian Cain
a0ba604006 (#11) Provide a way to delete all vms acquired by token
This commit adds a way for a user to delete all vms that were obtained
by a specific token. It will ask the user if they are sure before
deleting everything.
2015-11-13 11:52:01 -08:00
Brian Cain
bc4cff5363 (maint) Have pooler delete class take array
Prior to this commit, the pooler class was expecting a comma separated
string of hosts to delete. This commit updates that to expect hostnames
to be an array instead.
2015-11-10 11:42:56 -08:00
Brian Cain
fa92da5c05 (maint) Update token status to not require password 2015-11-05 13:28:37 -08:00
Brian Cain
b62cffa2cd (spec) Add format spec test 2015-10-21 22:21:13 -07:00
Brian Cain
a00666e7e4 Bump to 0.2.13 2015-10-16 15:50:44 -07:00
Brian Cain
1cfe1b7131 Properly store and show domain key for get requests 2015-10-16 15:35:40 -07:00
Brian Cain
d30282ef25 Fix bug where modify_body in modify was not being set to json 2015-10-14 17:27:56 -07:00
Brian Cain
0effe55c31 Add failure message if modify command did not work 2015-10-14 17:17:00 -07:00
Brian Cain
2153507098 Merge branch 'master' of github.com:briancain/vmfloaty 2015-10-14 09:56:54 -07:00
Brian Cain
221e5db6b5 Improve formatting of cli tool 2015-10-13 23:15:47 -07:00
Brian Cain
beeac3858c (spec) Add spec tests for Pooler class 2015-10-13 22:43:00 -07:00
Brian Cain
559005057e Ensure vm number is specified from cli args 2015-10-12 09:48:17 -07:00
Brian Cain
54893cf5fb Improve how to retrieve vms
This commit changes the get command to have users request vms by
specifying the hosts they want and then the number of hosts rather than
having to say each one separated by a comma.
2015-10-09 22:06:14 -07:00
Brian Cain
76a2d23973 (#3) Add initial formatter class 2015-10-01 23:39:23 -07:00
Brian Cain
c738b0c566 Abstract conf parsing to class 2015-10-01 23:32:17 -07:00
Brian Cain
9b176a7bd5 Add class for getting version 2015-10-01 23:30:12 -07:00
Brian Cain
98741e5e4a Fix token auth for methods
Properly set the header to be X-AUTH-TOKEN for requests to the pooler.
2015-09-25 14:03:47 -07:00
Brian Cain
de7a9ac433 Remove random puts command 2015-09-25 13:34:38 -07:00
Brian Cain
fa33863003 Improve output of delete command 2015-09-19 15:21:35 -07:00
Brian Cain
5908fe2d9e Update modify command to properly handle tags and TTL 2015-09-19 15:18:55 -07:00
Brian Cain
fa93804ffc Check if hosts are nil for delete method 2015-09-15 13:54:25 -07:00
Brian Cain
16dd780cb9 Add correct headers for token requests 2015-09-15 13:38:52 -07:00
Brian Cain
f8cc329447 Fix typo for delete methods 2015-09-15 13:28:53 -07:00
Brian Cain
9fc9820120 Simplify how floaty gets vms
Instead of building a json hash for each requested vm, sub the host
strings commas with + and append it to the request url.
2015-09-15 13:08:52 -07:00
Brian Cain
7fb07a9a69 Properly parse response body in token delete 2015-09-15 11:29:47 -07:00
Brian Cain
2ea08f95a5 Fix res_body variable typo in Auth class 2015-09-15 11:24:17 -07:00
Brian Cain
562b811867 Simplify token requests 2015-09-15 10:40:36 -07:00
Brian Cain
c9dd50716e Do not verify ssl certificates 2015-09-15 10:26:54 -07:00
Brian Cain
992a37cabf Update http method name that takes user/password 2015-09-14 22:53:39 -07:00
Brian Cain
eee7aab760 Add http class for api token requests 2015-09-14 22:50:01 -07:00
Brian Cain
e194f04ea9 Simplify operating system hash for get method 2015-09-14 22:26:27 -07:00
Brian Cain
8616397c8e Properly handle token requests 2015-09-14 22:23:55 -07:00
Brian Cain
ad003d474b Move error messages to STDERR and exit 1 2015-09-14 22:21:06 -07:00
Brian Cain
607a679a81 Add http request method that takes user/password combo 2015-09-14 22:15:01 -07:00
Brian Cain
4198321127 Remove /v1 from auth class 2015-09-14 22:01:47 -07:00
Brian Cain
832169a066 Check if url is nil before making connection 2015-09-14 21:53:40 -07:00
Brian Cain
201f59c376 Add verbose to methods 2015-09-14 21:45:33 -07:00
Brian Cain
44c5315bfd Move printing to command class instead of pooler class
This commit makes the pooler class more of a library rather than a
helper class that prints the response body of api requests
2015-09-14 21:37:12 -07:00
Brian Cain
31de937e4f Fix filter unknown variable 2015-09-14 16:51:48 -07:00
Brian Cain
2e32472ac2 Remove /v1 from urls in pooler library 2015-09-14 14:50:35 -07:00
Brian Cain
d3b1af4a06 (#1) Add token status and delete methods 2015-09-07 14:11:05 -07:00
Brian Cain
02527b9665 (#1) Update query, snapshot, and revert 2015-09-06 12:16:08 -07:00
Brian Cain
13f5a282c7 (#1) Add summary command
Right now it does not support timespans, and just does current day.
2015-09-06 11:35:42 -07:00
Brian Cain
296f9abb1d (#1) Update vmfloaty to use new vmpooler api
This commit also uses commander for arg parsing.

This commit is a WIP.
2015-09-05 16:17:45 -07:00
Brian Cain
12ee91df3e Pretty print obtained hosts and add init host manager functions 2014-11-12 22:28:21 -08:00
Brian Cain
007bbbc39c Remove provision
Beaker already does this
2014-10-29 15:51:03 -07:00