class BundleDepot::CLI
Public Class Methods
exit_on_failure?()
click to toggle source
# File lib/bundle_depot/cli.rb, line 7 def self.exit_on_failure? true end
Public Instance Methods
fetch()
click to toggle source
# File lib/bundle_depot/cli.rb, line 17 def fetch BundleDepot::Cache.new.fetch rescue GemfileNotFound say "Couldn't find Gemfile.lock" exit 1 end
store()
click to toggle source
# File lib/bundle_depot/cli.rb, line 30 def store BundleDepot::Cache.new.store rescue GemfileNotFound say "Couldn't find Gemfile.lock" exit 1 rescue BundleNotFound say "Couldn't find the cached bundle. Please run 'bundle-depot fetch' before calling this command..." exit 2 rescue RemoteConfigurationMissing say "Remote cache is not configured. Configured the SCP environment variables to run 'bundle-depot store'" exit 3 end