Module: Luban::Deployment::Parameters::General
- Extended by:
- Base
- Included in:
- Command, Runner, Worker::Base
- Defined in:
- lib/luban/deployment/parameters.rb
Constant Summary collapse
- DefaultLubanRootPath =
Pathname.new('/opt/luban')
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Base
Class Method Details
.included(mod) ⇒ Object
25 26 27 |
# File 'lib/luban/deployment/parameters.rb', line 25 def self.included(mod) mod.extend(Base) end |
Instance Method Details
#current_uid ⇒ Object
33 34 35 |
# File 'lib/luban/deployment/parameters.rb', line 33 def current_uid `id -u #{current_user} 2>/dev/null`.chomp end |
#current_user ⇒ Object
29 30 31 |
# File 'lib/luban/deployment/parameters.rb', line 29 def current_user ENV['USER'] || `whoami 2>/dev/null`.chomp end |