Skip to content

procon_bypass_manのバージョンマネージャー

License

Notifications You must be signed in to change notification settings

splaplapla/pbmenv

Repository files navigation

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 ...

About

procon_bypass_manのバージョンマネージャー

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages