Class: Loom::Shell::Core::LocalShell
- Inherits:
-
Loom::Shell::Core
- Object
- Loom::Shell::Core
- Loom::Shell::Core::LocalShell
- Defined in:
- lib/loom/shell/core.rb
Overview
A shell object restricted to localhost.
Instance Attribute Summary
Attributes inherited from Loom::Shell::Core
#dry_run, #mod_loader, #session, #shell_api
Instance Method Summary collapse
-
#initialize(mod_loader, session, dry_run) ⇒ LocalShell
constructor
A new instance of LocalShell.
- #local ⇒ Object
- #prompt_label ⇒ Object
Methods inherited from Loom::Shell::Core
#capture, #cd, #execute, #is_sudo?, #pipe, #sudo, #test, #upload, #verify, #verify_which, #wrap
Constructor Details
#initialize(mod_loader, session, dry_run) ⇒ LocalShell
Returns a new instance of LocalShell.
257 258 259 260 |
# File 'lib/loom/shell/core.rb', line 257 def initialize(mod_loader, session, dry_run) super mod_loader, SSHKit::Backend::Local.new, dry_run @session = session end |
Instance Method Details
#local ⇒ Object
262 263 264 |
# File 'lib/loom/shell/core.rb', line 262 def local raise 'already in a local shell' end |
#prompt_label ⇒ Object
266 267 268 |
# File 'lib/loom/shell/core.rb', line 266 def prompt_label "local" end |