Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the point of bundle package?

I understand what Rail's bundle package does and how to use it, but I'm drawing a blank as to why it would be a useful command. What utility does it have?

like image 552
Matty Avatar asked Aug 29 '11 14:08

Matty


People also ask

What is the purpose of bundle pricing?

Bundle pricing is a strategy where companies combine complementary products / services together and offer them at a single (often reduced) price. These bundles have a greater perceived value to customers and bring many benefits to the company such as increased average revenue per user (ARPU) and user engagement.

Is bundle pricing a good price Why?

Bundle pricing can benefit a company because it can display more value for the products overall. Bundle pricing focuses on the idea of consumer surplus and the notion that customers typically have a predetermined price that they're willing to pay for an item.

What is a bundle package?

Product bundles are several individual goods or services that are sold to consumers as one combined package. Sometimes called "package deals," product bundles are generally made up of complementary items or, less frequently, similar items.

Why do companies sell bundle products?

The most common goal of product bundling is to generate more sales by enticing customers into buying more items. Sometimes companies create product bundles with products they want to clear out of stock or get rid of.


2 Answers

bundle package will copy all the gems required by your application into the vendor/cache folder. This also includes dependencies required by the gems.

This helps because at the time of deployment you can just run bundle install --local to avoid dependency on the gems repository (rubygems.org) and install all the gems from the cached folder

Because each gem might have different dependencies depending upon the platform in which it is installed, it's recommended to use bundle package only when your development and deployment environments are alike.

like image 58
dexter Avatar answered Sep 18 '22 16:09

dexter


You would use it when you have a need to not connect to the gem source, its useful if your moving files across machines and don't want to fetch gems from a remote source all the time. See the documentation here.

like image 32
Devin M Avatar answered Sep 19 '22 16:09

Devin M