Sha256: ef6e179f2b12425612c692a4a58539384c5174492c6fd56183e7695fedb38bb3
Contents?: true
Size: 501 Bytes
Versions: 3
Compression:
Stored size: 501 Bytes
Contents
module Match class ChangePassword def self.update(params: nil, from: nil, to: nil) to ||= UI.password("New password: ") GitHelper.clear_changes workspace = GitHelper.clone(params[:git_url], params[:shallow_clone], manual_password: from) Encrypt.new.clear_password(params[:git_url]) Encrypt.new.store_password(params[:git_url], to) message = "[fastlane] Changed password" GitHelper.commit_changes(workspace, message, params[:git_url]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
match-0.2.2 | lib/match/change_password.rb |
match-0.2.1 | lib/match/change_password.rb |
match-0.2.0 | lib/match/change_password.rb |