Class: Ansible::Ruby::Modules::Bundler

Inherits:
Base show all
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

Methods inherited from Base

#ansible_name, #to_h

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_directoryObject?

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).

Returns:

  • (Object, nil)

    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

#chdirString?

Returns The directory to execute the bundler commands from. This directoy needs to contain a valid Gemfile or .bundle/ directory.

Returns:

  • (String, nil)

    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

#cleanBoolean?

Returns Only applies if state is C(present). If set removes any gems on the target host that are not in the gemfile.

Returns:

  • (Boolean, nil)

    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_modeBoolean?

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.

Returns:

  • (Boolean, nil)

    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_groupsString?

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.

Returns:

  • (String, nil)

    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

#executableString?

Returns The path to the bundler executable.

Returns:

  • (String, nil)

    The path to the bundler executable



11
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb', line 11

attribute :executable

#extra_argsObject?

Returns A space separated string of additional commands that can be applied to the Bundler command. Refer to the Bundler documentation for more information.

Returns:

  • (Object, nil)

    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_pathString?

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).

Returns:

  • (String, nil)

    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

#gemfileString?

Returns Only applies if state is C(present). The path to the gemfile to use to install gems.

Returns:

  • (String, nil)

    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

#localBoolean?

Returns If set only installs gems from the cache on the target host.

Returns:

  • (Boolean, nil)

    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.

Returns:

  • (:present, :latest, nil)

    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_installBoolean?

Returns Only applies if state is C(present). Installs gems in the local user’s cache or for all users.

Returns:

  • (Boolean, nil)

    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