Skip to content

Commit a4018d9

Browse files
author
Peter Benjamin
committed
Find configuration values gracefully
1 parent 054e84a commit a4018d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/bin/restacker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ end
111111
options, unparsed = Parser.parse(ARGV)
112112

113113
# set the username to $USER if not specified
114-
options[:username] = options[:username] || RestackerConfig.default_user || ENV['USER']
114+
options[:username] = RestackerConfig.find_user(options)
115115

116116
begin
117117
action = unparsed.pop
118118
puts(VERSION) || exit(0) if options[:version]
119119
usage("Please specify an ACTION") && exit(0) if action.nil?
120-
plane = RestackerConfig.load_config(options)
120+
plane = RestackerConfig.get_plane(options)
121121

122122
if action == 'configure'
123123
printf "%-s (%s)\n", Rainbow("CONFIGURING PLANE").white.bright.underline, plane

0 commit comments

Comments
 (0)