Class: Ansible::Ruby::Modules::Bundler
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Bundler
- Defined in:
- lib/ansible/ruby/modules/generated/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 ⇒ :yes, ...
Only applies if state is C(present).
-
#deployment_mode ⇒ :yes, ...
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 ⇒ :yes, ...
If set only installs gems from the cache on the target host.
-
#state ⇒ :present, ...
The desired state of the Gem bundle.
-
#user_install ⇒ :yes, ...
Only applies if state is C(present).
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #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).
52 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 52 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.
20 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 20 attribute :chdir |
#clean ⇒ :yes, ...
Returns Only applies if state is C(present). If set removes any gems on the target host that are not in the gemfile.
28 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 28 attribute :clean |
#deployment_mode ⇒ :yes, ...
Returns Only applies if state is C(present). If set it will install gems in ./vendor/bundle instead of the default location. Requires a Gemfile.lock file to have been created prior.
40 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 40 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.
24 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 24 attribute :exclude_groups |
#executable ⇒ String?
Returns The path to the bundler executable.
12 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 12 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.
55 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 55 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).
48 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 48 attribute :gem_path |
#gemfile ⇒ String?
Returns Only applies if state is C(present). The path to the gemfile to use to install gems.
32 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 32 attribute :gemfile |
#local ⇒ :yes, ...
Returns If set only installs gems from the cache on the target host.
36 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 36 attribute :local |
#state ⇒ :present, ...
Returns The desired state of the Gem bundle. C(latest) updates gems to the most recent, acceptable version.
16 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 16 attribute :state |
#user_install ⇒ :yes, ...
Returns Only applies if state is C(present). Installs gems in the local user’s cache or for all users.
44 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/bundler.rb', line 44 attribute :user_install |