Class: Sambot::Domain::Workstation

Inherits:
Object
  • Object
show all
Defined in:
lib/sambot/domain/workstation.rb

Class Method Summary collapse

Class Method Details

.configure(username) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/sambot/domain/workstation.rb', line 5

def self.configure(username)
  UI.debug("Updating your SSH configuration.")
  update_ssh_configuration(username)
  UI.debug("Updating your environment variables.")
  update_environment_variables()
  UI.debug("Updating your hosts file.")
  DNS.update_hosts()
  UI.info("Your workstation is now ready for use. Please close this shell and open up a new one to start making use of your new environment.")
end

.update_environment_variablesObject



20
21
# File 'lib/sambot/domain/workstation.rb', line 20

def self.update_environment_variables
end

.update_ssh_configuration(username) ⇒ Object



15
16
17
18
# File 'lib/sambot/domain/workstation.rb', line 15

def self.update_ssh_configuration(username)
  config = Domain::Ssh::Parser.new.update('DEV\\' + username)
  config.save
end