Sha256: 6712d06076f788251c0a9f5973735f366801fb26131b1aa20262f244273474b5

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

# encoding: utf-8


class PluginLoader
  include LogUtils::Logging
  include Slideshow::PluginHelper  # e.g. gets us load_plugins machinery

  def initialize( config )
    @config = config
  end

  attr_reader :config
end


class SysInfo
  def initialize( config )
    @config = config
  end

  attr_reader :config

  def dump
  puts <<EOS

#{Slideshow.generator}

Gems versions:
  - pakman #{Pakman::VERSION}
  - fetcher #{Fetcher::VERSION}
  - kramdown #{Kramdown::VERSION}
  - liquid #{Liquid::VERSION}
  - textutils #{TextUtils::VERSION}
  - logutils #{LogKernel::VERSION}
  - props #{Props::VERSION}

  - slideshow-models #{Slideshow::VERSION}
  - slideshow #{SlideshowCli::VERSION}

                 Env home: #{Env.home}
         Slideshow config: #{config.config_dir}
          Slideshow cache: #{config.cache_dir}
           Slideshow root: #{Slideshow.root}

EOS

  # dump Slideshow settings
  config.dump
  puts

  # todo:
  # add version for rubygems


    dump_load_path   # helps debugging pluggin loading (e.g. Ruby 1.9.2> no longer includes ./ in load path)
  end

  def dump_load_path
    puts 'load path:'
    $LOAD_PATH.each_with_index do |path,i|
      puts "  [#{i+1}] #{path}"
    end
  end

end # class SysInfo

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slideshow-4.1.0 lib/slideshow/cli/main_utils.rb
slideshow-4.0.0 lib/slideshow/cli/main_utils.rb