Class: PoiseRuby::Resources::BundleInstall::Resource
- Inherits:
-
Chef::Resource
- Object
- Chef::Resource
- PoiseRuby::Resources::BundleInstall::Resource
- Includes:
- Poise, PoiseRuby::RubyCommandMixin
- Defined in:
- lib/poise_ruby/resources/bundle_install.rb
Overview
This resource is not idempotent itself, it will always run bundle
install
.
A bundle_install
resource to install a Bundler
Gemfile.
Instance Attribute Summary collapse
-
#binstubs ⇒ Boolean, String
Enable binstubs.
-
#deployment ⇒ Boolean
Enable deployment mode.
-
#jobs ⇒ String, Integer
Number of parallel installations to run.
-
#path ⇒ String
Path to the Gemfile or to a directory that contains a Gemfile.
-
#retry ⇒ String, Integer
Number of times to retry failed installations.
-
#user ⇒ String, ...
User to run bundler as.
-
#vendor ⇒ Boolean, String
Enable local vendoring.
-
#without ⇒ String+
Group or groups to not install.
Instance Method Summary collapse
-
#bundler_binary ⇒ String
The path to the
bundle
binary for this installation. -
#gemfile_path ⇒ String
The path to the Gemfile for this installation.
Instance Attribute Details
#binstubs ⇒ Boolean, String
Enable binstubs. If set to a string it is the path to generate stubs in.
59 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 59 attribute(:binstubs, kind_of: [TrueClass, String]) |
#deployment ⇒ Boolean
Enable deployment mode.
63 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 63 attribute(:deployment, equal_to: [true, false], default: false) |
#jobs ⇒ String, Integer
Number of parallel installations to run.
67 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 67 attribute(:jobs, kind_of: [String, Integer]) |
#path ⇒ String
Path to the Gemfile or to a directory that contains a Gemfile.
54 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 54 attribute(:path, kind_of: String, name_attribute: true) |
#retry ⇒ String, Integer
Number of times to retry failed installations.
71 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 71 attribute(:retry, kind_of: [String, Integer]) |
#user ⇒ String, ...
User to run bundler as.
75 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 75 attribute(:user, kind_of: [String, Integer, NilClass]) |
#vendor ⇒ Boolean, String
Enable local vendoring. This maps to the --path
option in bundler,
but that attribute name is already used.
80 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 80 attribute(:vendor, kind_of: [TrueClass, String]) |
#without ⇒ String+
Group or groups to not install.
84 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 84 attribute(:without, kind_of: [Array, String]) |
Instance Method Details
#bundler_binary ⇒ String
The path to the bundle
binary for this installation. This is an
output property.
92 93 94 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 92 def bundler_binary @bundler_binary ||= provider_for_action(:bundler_binary).bundler_binary end |
#gemfile_path ⇒ String
The path to the Gemfile for this installation. This is an output property.
104 105 106 |
# File 'lib/poise_ruby/resources/bundle_install.rb', line 104 def gemfile_path @gemfile_path ||= provider_for_action(:gemfile_path).gemfile_path end |