Commit graph

51 commits

Author SHA1 Message Date
Tim Meusel
f29ff107ea
faraday: allow latest versions
latest faraday is required because:
beaker -> beaker-abs -> vmfloaty

and at least in beaker we need the github changelog generator gem and
that requires faraday 1.x
2021-07-11 20:51:11 +02:00
dependabot-preview[bot]
d0f7452998
Update commander requirement from ~> 4.4.3 to >= 4.4.3, < 4.6.0
Updates the requirements on [commander](https://github.com/commander-rb/commander) to permit the latest version.
- [Release notes](https://github.com/commander-rb/commander/releases)
- [Changelog](https://github.com/commander-rb/commander/blob/master/History.rdoc)
- [Commits](https://github.com/commander-rb/commander/compare/v4.4.3...v4.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-07 14:35:22 +00:00
28fb9290d4
Update docs
This chane updates docs to reflect that ownership has moved to the DIO
team at Puppet. It also includes some formatting changes.
2020-07-02 12:52:32 -04:00
Nick Lewis
c417c3574c Bump faraday dependency for Ruby 2.7 compatibility
The only significant changes between 0.15.4 and 0.17.3 are silencing
some deprecation warnings on Ruby 2.7.
2020-01-28 13:05:33 -08:00
Brandon High
c140e7af48
Update Faraday to 0.15, remove unnecessary headers 2019-10-22 13:28:14 -07:00
Tim Sharpe
66993b43fd (rubocop) Fix Gemspec/OrderedDependencies 2019-02-03 13:22:01 +11:00
Tim Sharpe
c7c8e48e2f (rubocop) Fix Style/ExpandPathArguments 2019-02-03 12:22:41 +11:00
Tim Sharpe
e0cbf89b8f (rubocop) Fix Style/FrozenStringLiteralComment 2019-02-03 12:22:41 +11:00
Brandon High
8550e1fa2f
Bump commander version
This commit bumps the commander version up to 4.4.3 in order to clear
up the deprecation warnings being emitted from 4.3.0:
```
> floaty get centos-7-x86_64
/Users/highb/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/commander-4.3.8/lib/commander/user_interaction.rb:333:
warning: constant ::NIL is deprecated
/Users/highb/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/commander-4.3.8/lib/commander/user_interaction.rb:333:
warning: constant ::TRUE is deprecated
/Users/highb/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/commander-4.3.8/lib/commander/user_interaction.rb:333:
warning: constant ::FALSE is deprecated
/Users/highb/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/commander-4.3.8/lib/commander/user_interaction.rb:333:
warning: constant ::Fixnum is deprecated
/Users/highb/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/commander-4.3.8/lib/commander/user_interaction.rb:333:
warning: constant ::Bignum is deprecated
- as9r7rigltr70zt.delivery.puppetlabs.net (centos-7-x86_64)
```
2017-10-18 10:51:43 -07:00
Brian Cain
ed82c44af5 Update email 2017-08-17 13:49:03 -07:00
Jesse Scott
6d57a1b5df Add basic bash completion script and framework for others 2017-07-27 11:27:16 -07:00
Ryan McKern
5c794cd2b0 Use the Classname::VERSION pattern
Instead of having a hardcoded version identifier in multiple
locations, we can leverage the Classname::VERSION pattern to have a
single canonical version number that everything can reference
programmatically.
2017-03-01 14:02:58 -08:00
Ryan McKern
0380b5fc9a Gemspec whitespace & tighter version constraints
Pessimistic versioning means that Faraday 0.11.0 will be installed if
the constraint is "~> 0.9", and that will break spec tests due to
newer restrictions in Faraday around how HTTP requests are handled by
rspec. We don't want to break tests.
2017-03-01 14:02:58 -08:00
Ryan McKern
21c42dbffa Clarify license in Gemspec
As per https://opensource.org/licenses/alphabetical, the name should
be Apache-2.0, not Apache.
2017-03-01 14:02:58 -08:00
Brian Cain
c8525bd0f1 Bump to 0.7.8 2016-12-20 08:42:09 -08:00
Brian Cain
82afa94b6e Properly check for large pool size requests 2016-12-14 11:04:51 -08:00
Brian Cain
82a3589db8 Bump to version 0.7.6 2016-12-09 08:57:25 -08:00
Brian Cain
b023339516 Move pretty status printing to Utils namespace and out of commands 2016-12-06 11:21:21 -08:00
Brian Cain
faf92a502d Include colorize in gemspec 2016-12-05 10:29:27 -08:00
Brian Cain
614fc4f7d8 Bump to 0.7.3 2016-12-05 08:42:50 -08:00
Brian Cain
586f4f5c05 Abstract out getting all active token vms into Utils 2016-11-12 13:59:26 -08:00
Brian Cain
41c0e931bb Bump verison to 0.7.1 2016-10-10 09:31:38 -07:00
Brian Cain
9bd552686c Update to 0.7.0 2016-09-24 13:38:19 -07:00
Brian Cain
1d0fc42c80 (#31) Improve how users can provide arguments to commands
Prior this commit, some commands did not accept some options as an
argument and instead only worked through a flag. This commit updates
that behavior to allow users to specify some options through arguments,
while leaving the ability to continue to specify those options through
flags. Command line arguments take precedence over flags. It also fixes
an issue where if a snapshot sha was nil, it would submit a request to
take a snapshot to vmpooler.
2016-09-17 16:07:21 -07:00
Brian Cain
b07139b64c (#29) Don't system exit in Auth class
This commit cleans up the Auth class so that it no longer system exits
if an error occurs. Instead it will return nil if it could not properly
make the request, and it's on the consumer of the class to handle
error cases.
2016-09-15 08:47:38 -07:00
Brian Cain
59eb5678ed Bump to version 0.6.0 2016-08-26 10:09:42 -07:00
Brian Cain
04acc14bf5 Remove require from gemspec 2016-07-29 14:15:16 -07:00
Brian Cain
1331a48bb2 Change back how version is set 2016-07-09 20:06:30 -07:00
Brian Cain
a6c5f1dceb (#24) Improve 'get' output
This commit updates how hosts are formated when shown to the user. It
applies a domain to each hostname instead of being a different key.
2016-07-02 11:41:02 -07:00
Brian Cain
06206456c7 Bump to version 0.3.1 2016-06-04 17:25:49 -07:00
Brian Cain
2e24a455a3 (#19) Update vmfloaty to expect /api/v1 in URL for disk endpoint
This commit updates floaty to use a new endpoint to modify vms. Now you
can use the modify command to extend the disk space of a given vm. The
downside is this new endpoint only exists at /api/v1 on the pooler, and
the way Faraday works required an update to removing a leading slash for
each request endpoint. Users should update their URL in the floaty dot
file to include a /api/v1 at the end of the pooler url
2016-05-03 14:57:00 -07:00
Brian Cain
56924fa811 Make query request before printing all vm information 2015-11-21 13:43:30 -08:00
Brian Cain
0cb635a6c7 Update to 0.2.18 2015-11-21 12:44:32 -08:00
Brian Cain
e3218a0fc9 Bump to version 0.2.17 2015-11-16 09:39:25 -08:00
Brian Cain
2a5e5ba9bb Bump to version 0.2.16 2015-11-16 09:17:48 -08:00
Brian Cain
544d9d35b8 Bump to version 0.2.15 2015-11-13 11:54:16 -08:00
Brian Cain
fa92da5c05 (maint) Update token status to not require password 2015-11-05 13:28:37 -08:00
Brian Cain
a00666e7e4 Bump to 0.2.13 2015-10-16 15:50:44 -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
221e5db6b5 Improve formatting of cli tool 2015-10-13 23:15:47 -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
9b176a7bd5 Add class for getting version 2015-10-01 23:30:12 -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
5588c941c2 Bump version 0.2.3 2015-09-17 21:17:01 -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
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