Class: Object
- Inherits:
- BasicObject
- Includes:
- Bixby::Log, Bixby::Script::Bundle, Bixby::ScriptUtil
- Defined in:
- lib/bixby-client/script.rb,
lib/bixby-client/script/bundle.rb
Instance Method Summary collapse
-
#log ⇒ Object
override to create logger based on script name.
Methods included from Bixby::Script::Bundle
Methods included from Bixby::Script::Util
#get_json_input, #logged_sudo, #logged_systemu, #read_stdin, #sudo, #systemu
Methods included from Bixby::Script::Platform
#amd64?, #bsd?, #linux?, #osx?, #solaris?, #uname, #windows?, #x86?
Methods included from Bixby::Script::Distro
#amazon_linux?, #amazon_linux_version, #centos?, #centos_version, #etc_issue, #ubuntu?, #ubuntu_version
Instance Method Details
#log ⇒ Object
override to create logger based on script name
15 16 17 |
# File 'lib/bixby-client/script.rb', line 15 def log @log ||= Logging.logger[File.basename($0)] end |