Class: Rlt::Utils::Shell
- Inherits:
-
Object
- Object
- Rlt::Utils::Shell
- Defined in:
- lib/rlt/utils/shell.rb
Instance Method Summary collapse
- #current_user ⇒ Object
-
#initialize(opts = {}) ⇒ Shell
constructor
A new instance of Shell.
- #run(*args) ⇒ Object
- #run_safely(*args) ⇒ Object
Constructor Details
Instance Method Details
#current_user ⇒ Object
24 25 26 |
# File 'lib/rlt/utils/shell.rb', line 24 def current_user ENV['USER'] || ENV['USERNAME'] end |