Class: Trustworthy::CLI::Passwd
- Inherits:
-
Object
- Object
- Trustworthy::CLI::Passwd
show all
- Includes:
- Command
- Defined in:
- lib/trustworthy/cli/passwd.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Command
#default_options, #parse_options, #print_help, #say
Class Method Details
.description ⇒ Object
6
7
8
|
# File 'lib/trustworthy/cli/passwd.rb', line 6
def self.description
'Change a keys password'
end
|
Instance Method Details
#run(args) ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/trustworthy/cli/passwd.rb', line 10
def run(args)
options = parse_options('passwd', args)
prompt = Trustworthy::Prompt.new(options[:config_file], $terminal)
username = prompt.change_user_password
say("Changed password for #{username}")
end
|