Commit graph

27 commits

Author SHA1 Message Date
Brian Cain
7015fc3b20 Check for token variable instead of from options
Update the get method to only retrieve tokens if one doesn't exist from
either the cli arguments or from a dotfile
2015-09-15 15:22:13 -07:00
Brian Cain
3e7b2b54fe Respect token from config file 2015-09-15 13:32:49 -07:00
Brian Cain
f8cc329447 Fix typo for delete methods 2015-09-15 13:28:53 -07:00
Brian Cain
a72303c859 Grab host instead of hostname for options params 2015-09-15 13:23:36 -07:00
Brian Cain
a9bce6ec97 Grab proper hostname flag for query command 2015-09-15 13:22:36 -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
9e4e7b3dab Do not ask for password if token is provided 2015-09-15 10:44:51 -07:00
Brian Cain
9c69e752e7 Add more error handling around token command 2015-09-14 22:56:17 -07:00
Brian Cain
992a37cabf Update http method name that takes user/password 2015-09-14 22:53:39 -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
d99e401bb0 Add verbose variable in command handling 2015-09-14 16:53:14 -07:00
Brian Cain
73827f4ee2 Add verbose flag for future use 2015-09-14 16:51:49 -07:00
Brian Cain
4c1add6060 Handle exception if not config file exists 2015-09-14 14:40:34 -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
4c249c0ce4 (#1) Use config file for defaults
This commit allows vmfloaty to read from a dotfile for some simple
configuration defaults
2015-09-06 11:10:43 -07:00
Brian Cain
49b4956323 (maint) Remove filter check from commands class 2015-09-06 10:39:12 -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
Brian Cain
b9c43f9695 Set vmpooler and list vm results 2014-10-29 11:43:53 -07:00
Brian Cain
d31b5e6b8f Add host manager 2014-10-28 23:16:33 -07:00
Brian Cain
55d4046c75 Add provision base 2014-10-28 23:02:30 -07:00
Brian Cain
51193ab4a6 Update CLI options 2014-10-28 22:57:48 -07:00
Brian Cain
99b03e2994 Initial commit of vmfloaty 2014-10-28 22:05:33 -07:00