Class: SysInfo
- Inherits:
-
Object
- Object
- SysInfo
- Defined in:
- lib/pluto/cli/main.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(opts) ⇒ SysInfo
constructor
todo/fix: pass in/use config (props).
Constructor Details
#initialize(opts) ⇒ SysInfo
todo/fix:
pass in/use config (props)
28 29 30 |
# File 'lib/pluto/cli/main.rb', line 28 def initialize( opts ) @opts = opts end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
32 33 34 |
# File 'lib/pluto/cli/main.rb', line 32 def opts @opts end |
Instance Method Details
#dump ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/pluto/cli/main.rb', line 35 def dump puts "\n\#{Pluto.banner}\n\nGems versions:\n- pakman \#{Pakman::VERSION}\n- fetcher \#{Fetcher::VERSION}\n- feedutils \#{FeedUtils::VERSION}\n- textutils \#{TextUtils::VERSION}\n- props \#{Props::VERSION}\n\n Env home: \#{Env.home}\nPluto config: \#{opts.config_path}\nPluto root: \#{Pluto.root}\n\n" # dump Pluto settings # config.dump # puts ## todo: add more gem version info # todo: add logutils version # add gli2 version end |