Class: Puppetfactory::Plugins::LoginShell

Inherits:
Puppetfactory::Plugins show all
Defined in:
lib/puppetfactory/plugins/login_shell.rb

Instance Attribute Summary

Attributes inherited from Puppetfactory::Plugins

#weight

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ LoginShell

Returns a new instance of LoginShell.



2
3
4
# File 'lib/puppetfactory/plugins/login_shell.rb', line 2

def initialize(options)
  super(options)
end

Instance Method Details

#loginObject



6
7
8
9
# File 'lib/puppetfactory/plugins/login_shell.rb', line 6

def 
  $logger.info 'Logging in with the default system shell'
  exec('bash --login')
end