Commit graph

355 commits

Author SHA1 Message Date
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
9e4e7b3dab Do not ask for password if token is provided 2015-09-15 10:44:51 -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
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
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
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
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
4c1add6060 Handle exception if not config file exists 2015-09-14 14:40:34 -07:00
Brian Cain
bda732fc17 Add vmpooler link in README 2015-09-07 14:27:15 -07:00
Brian Cain
28180c17fe Add floaty image in readme 2015-09-07 14:26:04 -07:00
Brian Cain
b64d9ba391 Add example dotfile config 2015-09-07 14:14:42 -07:00
Brian Cain
02f56d3256 Update readme with token commant 2015-09-07 14:12:55 -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
f773e0a5a6 Add note on vmpooler api 2015-09-06 11:36:47 -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
fcb43ac379 Add todo for commands 2014-12-08 20:37:48 -08:00
Brian Cain
a29e183cf0 Gem added to ruby gems 2014-12-08 20:34:19 -08:00
Brian Cain
12ee91df3e Pretty print obtained hosts and add init host manager functions 2014-11-12 22:28:21 -08:00
Brian Cain
f40291706a Update README 2014-10-29 15:54:14 -07:00
Brian Cain
007bbbc39c Remove provision
Beaker already does this
2014-10-29 15:51:03 -07:00
Brian Cain
18869bb440 Fix if branch and option syntax errors 2014-10-29 14:14:51 -07:00
Brian Cain
ca90919c03 Add initial all option for releasing vms 2014-10-29 14:09:58 -07:00
Brian Cain
dce854ae2a Remove PE option from get operation
This operation should probably not exist within the get operation.
Instead, it can exist with the provision class.
2014-10-29 14:04:26 -07:00
Brian Cain
bd6c6ed0f7 Update README cli 2014-10-29 13:51:54 -07:00
Brian Cain
65f93cb519 Add get and release to cli 2014-10-29 13:51:24 -07:00
Brian Cain
85d5eda24b Filter list command 2014-10-29 13:16:09 -07:00
Brian Cain
b9c43f9695 Set vmpooler and list vm results 2014-10-29 11:43:53 -07:00
Brian Cain
cafe3ee005 Remove extra print 2014-10-28 23:30:26 -07:00
Brian Cain
c8dc80c1f1 Update get doc 2014-10-28 23:21:54 -07:00
Brian Cain
15ca0a3b25 Update README info 2014-10-28 23:20:17 -07:00
Brian Cain
cd794ad160 Update pe provisioner 2014-10-28 23:16:40 -07:00
Brian Cain
d31b5e6b8f Add host manager 2014-10-28 23:16:33 -07:00
Brian Cain
75f2a212a4 Add info on vmpooler api urls 2014-10-28 23:13:09 -07:00