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
62
63
64
65
66
67
68
# 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}
- logutils #{LogKernel::VERSION}
- props #{Props::VERSION}

- pluto #{PlutoCli::VERSION}
- pluto-models #{Pluto::VERSION}
- pluto-update #{PlutoUpdate::VERSION}
- pluto-merge #{PlutoMerge::VERSION}
- pluto-tasks #{PlutoTasks::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