aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorAndré Arko <mail@arko.net>2015-04-07 11:00:44 -0700
committerAndré Arko <mail@arko.net>2015-04-07 11:00:44 -0700
commit13f44d1241ca7a7ce435bd43790a26a0a140126b (patch)
tree35cf0ab2353f6736e2cb064cceeb7ec5c4e91c3f /man
parent471e139fe6eccd7fffea3bd9d5638901ad2acf38 (diff)
parent8f987f26a623b80c65eb206d31e777d6bedbf172 (diff)
downloadbundler-13f44d1241ca7a7ce435bd43790a26a0a140126b.tar.gz
Merge pull request #3531 from jhass/optional_groups
Implement optional groups
Diffstat (limited to 'man')
-rw-r--r--man/bundle-install.ronn9
-rw-r--r--man/gemfile.5.ronn6
2 files changed, 14 insertions, 1 deletions
diff --git a/man/bundle-install.ronn b/man/bundle-install.ronn
index e9706b51..117fd363 100644
--- a/man/bundle-install.ronn
+++ b/man/bundle-install.ronn
@@ -18,6 +18,7 @@ bundle-install(1) -- Install the dependencies specified in your Gemfile
[--standalone[=GROUP[ GROUP...]]]
[--trust-policy=POLICY]
[--without=GROUP[ GROUP...]]
+ [--with=GROUP[ GROUP...]]
## DESCRIPTION
@@ -125,8 +126,16 @@ update process below under [CONSERVATIVE UPDATING][].
* `--without=<list>`:
A space-separated list of groups referencing gems to skip during installation.
+ If a group is given that is in the remembered list of groups given
+ to --with, it is removed from that list.
This is a [remembered option][REMEMBERED OPTIONS].
+* `--with=<list>`:
+ A space-separated list of groups referencing gems to install. If an
+ optional group is given it is installed. If a group is given that is
+ in the remembered list of groups given to --without, it is removed
+ from that list. This is a [remembered option][REMEMBERED OPTIONS].
+
## DEPLOYMENT MODE
diff --git a/man/gemfile.5.ronn b/man/gemfile.5.ronn
index 1340b59a..89911695 100644
--- a/man/gemfile.5.ronn
+++ b/man/gemfile.5.ronn
@@ -430,11 +430,15 @@ applied to a group of gems by using block form.
gem "sqlite3"
end
- group :development do
+ group :development, :optional => true do
gem "wirble"
gem "faker"
end
+In the case of the group block form the :optional option can be given
+to prevent a group from being installed unless listed in the `--with`
+option given to the `bundle install` command.
+
In the case of the `git` block form, the `:ref`, `:branch`, `:tag`,
and `:submodules` options may be passed to the `git` method, and
all gems in the block will inherit those options.