Class: SysInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#optsObject (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

#dumpObject



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 <<EOS

#{Pluto.banner}

Gems versions:
- pakman #{Pakman::VERSION}
- fetcher #{Fetcher::VERSION}
- feedutils #{FeedUtils::VERSION}
- textutils #{TextUtils::VERSION}
- props #{Props::VERSION}

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

EOS

# dump Pluto settings
# config.dump
# puts
    

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