Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/.metaforce.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# This is purely an example.
# It is a good practice to leave passwords empty in this file and manually type it when prompted.
# Your password will NOT be shown in console while typing.
---
production:
username: foo@bar.com
Expand Down
6 changes: 5 additions & 1 deletion lib/metaforce/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ def client
credentials.merge!(options.slice(:username, :password, :security_token, :host))
credentials.tap do |credentials|
credentials[:username] ||= ask('username:')
credentials[:password] ||= ask('password:')
if credentials[:password].nil?
print("password: ")
credentials[:password] = STDIN.noecho(&:gets).chomp
puts();
end
credentials[:security_token] ||= ask('security token:')
end
Metaforce.configuration.host = credentials[:host]
Expand Down