Sha256: 9b7b2fc72120fe48dc87678ab1f074d502ee45db51409799a9e2cac1d119b0d1

Contents?: true

Size: 606 Bytes

Versions: 12

Compression:

Stored size: 606 Bytes

Contents

# frozen_string_literal: true

require "pakyow/version"

module Pakyow
  # Returns information about the environment.
  #
  def self.info
    {
      versions: {
        ruby: "v#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_PLATFORM})",
        pakyow: "v#{VERSION}"
      },

      apps: Pakyow.mounts.map { |mount|
        {
          mount_path: mount[:path],
          class: mount[:app].to_s,
          reference: mount[:app].config.name.inspect,
          frameworks: mount[:app].config.loaded_frameworks,
          app_root: File.expand_path(mount[:app].config.root)
        }
      }
    }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pakyow-core-1.0.6 lib/pakyow/info.rb
pakyow-core-1.0.5 lib/pakyow/info.rb
pakyow-core-1.0.4 lib/pakyow/info.rb
pakyow-core-1.0.3 lib/pakyow/info.rb
pakyow-core-1.0.2 lib/pakyow/info.rb
pakyow-core-1.0.1 lib/pakyow/info.rb
pakyow-core-1.0.0 lib/pakyow/info.rb
pakyow-core-1.0.0.rc5 lib/pakyow/info.rb
pakyow-core-1.0.0.rc4 lib/pakyow/info.rb
pakyow-core-1.0.0.rc3 lib/pakyow/info.rb
pakyow-core-1.0.0.rc2 lib/pakyow/info.rb
pakyow-core-1.0.0.rc1 lib/pakyow/info.rb