Class: Puppetfactory::Plugins::LoginShell
- Inherits:
-
Puppetfactory::Plugins
- Object
- Puppetfactory::Plugins
- Puppetfactory::Plugins::LoginShell
- Defined in:
- lib/puppetfactory/plugins/login_shell.rb
Instance Attribute Summary
Attributes inherited from Puppetfactory::Plugins
Instance Method Summary collapse
-
#initialize(options) ⇒ LoginShell
constructor
A new instance of LoginShell.
- #login ⇒ Object
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() super() end |
Instance Method Details
#login ⇒ Object
6 7 8 9 |
# File 'lib/puppetfactory/plugins/login_shell.rb', line 6 def login $logger.info 'Logging in with the default system shell' exec('bash --login') end |