Project

pbmenv

0.0
No release in over a year
A package manager of PBM
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Pbmenv

Ruby

Installation

Add this line to your application's Gemfile:

gem 'pbmenv'

Usage

  • pbmenv commands
    • pbmenv available_versions
    • pbmenv versions
    • pbmenv install $version
      • --use
        • そのまま/usr/share/pbm/currentディレクトリへのシンボリックリンクを貼ります
    • pbmenv use $version
    • pbmenv uninstall $version
    • pbmenv clean $version_size_to_keep
  • API
    • Pbmenv.available_versions
    • Pbmenv.versions
      • /usr/share/pbm/#{version} を返す
    • Pbmenv.install(version)
    • Pbmenv.use(version)
      • /usr/share/pbm/#{version} を /usr/share/pbm/current へのシムリンクを作成する
    • Pbmenv.uninstall(version)
      • /usr/share/pbm/current が削除対象だったら例外を投げる
      • /usr/share/pbm/#{version} を 削除する
    • Pbmenv.clean(version_size_to_keep)
      • 古いバージョンをversion_size_to_keepの数だけ削除します
      • currentと最新のディレクトリは削除対象外です

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pbmenv. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Development

  • docker-compose build --no-cache
  • docker-compose run app bash
  • bin/rspec
    • also DISABLE_DEBUG_LOG=1 bin/rspec

ローカルでgemをインストールして動作確認をする

  • rake build
  • gem i --local pkg/pbmenv-x.y.z.gem
  • pbmenv ...