Class: SysInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/slideshow/cli/main_utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ SysInfo

Returns a new instance of SysInfo.



66
67
68
# File 'lib/slideshow/cli/main_utils.rb', line 66

def initialize( config )
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



70
71
72
# File 'lib/slideshow/cli/main_utils.rb', line 70

def config
  @config
end

Instance Method Details

#dumpObject



72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/slideshow/cli/main_utils.rb', line 72

def dump
puts "\n\#{Slideshow.generator}\n\nGems versions:\n- pakman \#{Pakman::VERSION}\n- fetcher \#{Fetcher::VERSION}\n- markdown \#{Markdown::VERSION}\n- textutils \#{TextUtils::VERSION}\n- props \#{Props::VERSION}\n\n      Env home: \#{Env.home}\nSlideshow config: \#{config.config_dir}\n Slideshow cache: \#{config.cache_dir}\nSlideshow root: \#{Slideshow.root}\n\n"

# dump Slideshow settings
config.dump
puts
    
# dump Markdown settings
Markdown.dump
puts
    
# todo:
# add verison for rubygems

## todo: add more gem version info
#- redcloth
#- kramdown
end