9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/sambot/commands/workstation.rb', line 9
def configure
username = ask("What is your DEV/QE Active Directory username i.e. john.smith?")
debug("Updating your SSH configuration.")
config = Domain::Workstations::SshParser.new.update('DEV\\' + username)
config.save
debug("Updating your environment variables.")
Domain::Workstations::Env.new.update
debug("Generating the datasource for Free Remote Desktop Manager, your RDP client.")
filename = Domain::Workstations::Hosts.new.generate
info("Your workstation is now ready for use. The RDM datasource is available here: #{filename}")
end
|