Sha256: 7767755b135df1e72cc98cf82ffffb4c2f9b4dc6002ce2f1f109eeb7347b52ae

Contents?: true

Size: 1.46 KB

Versions: 8

Compression:

Stored size: 1.46 KB

Contents

module Pione
  module Global
    # Git repository directory
    define_computed_item(:git_repository_directory, [:dot_pione_dir]) do |item|
      item.desc = "path of git repogitory directory"
      item.define_updater do
        Location[Global.dot_pione_dir + "git-repository"]
      end
    end

    # Git package directory
    define_computed_item(:git_package_directory, [:dot_pione_dir]) do |item|
      item.desc = "path of git package directory"
      item.define_updater do
        Location[Global.dot_pione_dir] + "git-package"
      end
    end

    # This is a cache directory path of PPG packages.
    define_computed_item(:ppg_package_cache_directory, [:dot_pione_dir]) do |item|
      item.desc = "path of PPG package cache directory"
      item.define_updater do
        Location[Global.dot_pione_dir] + "ppg-package-cache"
      end
    end

    # This is a cache directory path of directory packages.
    define_computed_item(:directory_package_cache_directory, [:dot_pione_dir]) do |item|
      item.desc = "path of directory package cache directory"
      item.define_updater do
        Location[Global.dot_pione_dir] + "directory-package-cache"
      end
    end

    # This is the location of package database in this system.
    define_computed_item(:package_database_location, [:dot_pione_dir]) do |item|
      item.desc = "location of package database"
      item.define_updater do
        Location[Global.dot_pione_dir] + "package-database.json"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pione-0.5.0 lib/pione/global/package-variable.rb
pione-0.5.0.alpha.2 lib/pione/global/package-variable.rb
pione-0.5.0.alpha.1 lib/pione/global/package-variable.rb
pione-0.4.2 lib/pione/global/package-variable.rb
pione-0.4.1 lib/pione/global/package-variable.rb
pione-0.4.0 lib/pione/global/package-variable.rb
pione-0.3.2 lib/pione/global/package-variable.rb
pione-0.3.1 lib/pione/global/package-variable.rb