Class: Kompo::BundleInstall
- Inherits:
-
Taski::Section
- Object
- Taski::Section
- Kompo::BundleInstall
- Includes:
- BundleCacheHelpers
- Defined in:
- lib/kompo/tasks/bundle_install.rb
Overview
Run bundle install --path bundle in work directory Uses standard Bundler (not standalone mode) so Bundler.require works Supports caching based on Gemfile.lock hash and Ruby version
Defined Under Namespace
Classes: FromCache, FromSource, Skip
Instance Method Summary collapse
Instance Method Details
#impl ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/kompo/tasks/bundle_install.rb', line 38 def impl # Skip if no Gemfile return Skip unless CopyGemfile.gemfile_exists # Skip cache if --no-cache is specified return FromSource if Taski.args[:no_cache] cache_exists? ? FromCache : FromSource end |