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
6ee138f08e
Add travis
2015-10-13 21:19:50 -07:00
Brian Cain
559005057e
Ensure vm number is specified from cli args
2015-10-12 09:48:17 -07:00
Brian Cain
e613a6818d
Initial commit of test framework
2015-10-09 22:26:20 -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
12c5fc1cbd
Add dependency on faraday
2015-10-06 13:55:58 -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
b82d7756de
( #5 ) Document how to use Pooler class for ruby scripts
2015-10-01 19:57:02 -07:00
Brian Cain
19d409b722
( #6 ) Write up simple introduction workflow in readme
2015-10-01 19:45:36 -07:00
Brian Cain
c75bc69ea2
Add warning string if no conf file exists
2015-10-01 19:40:26 -07:00
Brian Cain
bd94b4585e
( #7 ) Document valid config file flags
2015-10-01 19:39:00 -07:00
Brian Cain
9495dd3ee8
Fix --notoken flag
2015-09-25 15:56:28 -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
c28f015346
Only set/parse tags if flag argument is called
2015-09-19 15:11:17 -07:00
Brian Cain
28b145d762
Simplify how notoken arg is processed in get
2015-09-19 15:07:18 -07:00
Brian Cain
5588c941c2
Bump version 0.2.3
2015-09-17 21:17:01 -07:00
Brian Cain
39a3d09766
Fix modify command bug
...
Hash is not a valid flag type so instead it will use string
2015-09-17 21:11:31 -07:00
Brian Cain
40fd138214
Remove host options and use argument instead
2015-09-17 21:05:09 -07:00
Brian Cain
279a0d98ce
Fix typo in readme for dotfile
2015-09-17 15:20:28 -07:00
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
d557541174
Properly add commander dependency for gemspec
2015-09-15 14:00:52 -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
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
7abe3564ed
Merge pull request #2 from briancain/update-with-commander
...
(#1 ) Update with commander
2015-09-15 13:10:01 -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
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