mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
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
This commit is contained in:
parent
d557541174
commit
7015fc3b20
2 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ class Vmfloaty
|
|||
include Commander::Methods
|
||||
|
||||
def run
|
||||
program :version, '0.2.0'
|
||||
program :version, '0.2.1'
|
||||
program :description, 'A CLI helper tool for Puppet Labs vmpooler to help you stay afloat'
|
||||
|
||||
config = read_config
|
||||
|
|
@ -40,7 +40,7 @@ class Vmfloaty
|
|||
return
|
||||
end
|
||||
|
||||
unless options.token
|
||||
unless token
|
||||
pass = password "Enter your password please:", '*'
|
||||
token = Auth.get_token(verbose, url, user, pass)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = 'vmfloaty'
|
||||
s.version = '0.2.1'
|
||||
s.version = '0.2.2'
|
||||
s.authors = ['Brian Cain']
|
||||
s.email = ['brian.cain@puppetlabs.com']
|
||||
s.license = 'Apache'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue