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 "\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