Class: Ansible::Ruby::Modules::Bundler
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Bundler
- Defined in:
- lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb
Overview
Manage installation and Gem version dependencies for Ruby using the Bundler gem
Instance Method Summary collapse
-
#binstub_directory ⇒ Object?
Only applies if state is C(present).
-
#chdir ⇒ String?
The directory to execute the bundler commands from.
-
#clean ⇒ Boolean?
Only applies if state is C(present).
-
#deployment_mode ⇒ Boolean?
Only applies if state is C(present).
-
#exclude_groups ⇒ String?
A list of Gemfile groups to exclude during operations.
-
#executable ⇒ String?
The path to the bundler executable.
-
#extra_args ⇒ Object?
A space separated string of additional commands that can be applied to the Bundler command.
-
#gem_path ⇒ String?
Only applies if state is C(present).
-
#gemfile ⇒ String?
Only applies if state is C(present).
-
#local ⇒ Boolean?
If set only installs gems from the cache on the target host.
-
#state ⇒ :present, ...
The desired state of the Gem bundle.
-
#user_install ⇒ Boolean?
Only applies if state is C(present).
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#binstub_directory ⇒ Object?
Returns Only applies if state is C(present). Specifies the directory to install any gem bins files to. When executed the bin files will run within the context of the Gemfile and fail if any required gem dependencies are not installed. If C(chdir) is set then this path is relative to C(chdir).
51 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 51 attribute :binstub_directory |
#chdir ⇒ String?
Returns The directory to execute the bundler commands from. This directoy needs to contain a valid Gemfile or .bundle/ directory.
19 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 19 attribute :chdir |
#clean ⇒ Boolean?
Returns Only applies if state is C(present). If set removes any gems on the target host that are not in the gemfile.
27 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 27 attribute :clean |
#deployment_mode ⇒ Boolean?
Returns Only applies if state is C(present). If set it will only install gems that are in the default or production groups. Requires a Gemfile.lock file to have been created prior.
39 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 39 attribute :deployment_mode |
#exclude_groups ⇒ String?
Returns A list of Gemfile groups to exclude during operations. This only applies when state is C(present). Bundler considers this a ‘remembered’ property for the Gemfile and will automatically exclude groups in future operations even if C(exclude_groups) is not set.
23 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 23 attribute :exclude_groups |
#executable ⇒ String?
Returns The path to the bundler executable.
11 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 11 attribute :executable |
#extra_args ⇒ Object?
Returns A space separated string of additional commands that can be applied to the Bundler command. Refer to the Bundler documentation for more information.
54 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 54 attribute :extra_args |
#gem_path ⇒ String?
Returns Only applies if state is C(present). Specifies the directory to install the gems into. If C(chdir) is set then this path is relative to C(chdir).
47 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 47 attribute :gem_path |
#gemfile ⇒ String?
Returns Only applies if state is C(present). The path to the gemfile to use to install gems.
31 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 31 attribute :gemfile |
#local ⇒ Boolean?
Returns If set only installs gems from the cache on the target host.
35 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 35 attribute :local |
#state ⇒ :present, ...
Returns The desired state of the Gem bundle. C(latest) updates gems to the most recent, acceptable version.
15 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 15 attribute :state |
#user_install ⇒ Boolean?
Returns Only applies if state is C(present). Installs gems in the local user’s cache or for all users.
43 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 43 attribute :user_install |