Class: Pluto::SysInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/pluto/cli/sysinfo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ SysInfo

todo/fix:

pass in/use config (props)


10
11
12
# File 'lib/pluto/cli/sysinfo.rb', line 10

def initialize( opts )
  @opts = opts
end

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts.



14
15
16
# File 'lib/pluto/cli/sysinfo.rb', line 14

def opts
  @opts
end

Instance Method Details

#dumpObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/pluto/cli/sysinfo.rb', line 17

def dump
puts <<TXT

#{PlutoCli.banner}

Gems versions:
- pakman #{Pakman::VERSION}
- fetcher #{Fetcher::VERSION}
- feedparser #{FeedParser::VERSION}
- feedfilter #{FeedFilter::VERSION}
- textutils #{TextUtils::VERSION}
- logutils #{LogKernel::VERSION}
- props #{Props::VERSION}

- pluto #{PlutoCli::VERSION}
- pluto-models #{Pluto::VERSION}
- pluto-update #{PlutoUpdate::VERSION}
- pluto-feedfetcher #{PlutoFeedFetcher::VERSION}
- pluto-merge #{PlutoMerge::VERSION}
- pluto-tasks #{PlutoTasks::VERSION}

  Env home: #{Env.home}
Pluto config: #{opts.config_path}
Pluto root: #{Pluto.root}

TXT

# dump Pluto settings
# config.dump
# puts


## todo: add more gem version info
# todo: add  logutils version
#       add  gli2     version
end