class PoiseRuby::Resources::BundleInstall::Resource

A `bundle_install` resource to install a [Bundler](bundler.io/) Gemfile.

@provides bundle_install @action install @action update @note

This resource is not idempotent itself, it will always run `bundle
install`.

@example

bundle_install '/opt/my_app' do
  gem_path '/usr/local/bin/gem'
end

Public Instance Methods

bundler_binary() click to toggle source

The path to the `bundle` binary for this installation. This is an output property.

@return [String] @example

execute "#{resources('bundle_install[/opt/myapp]').bundler_binary} vendor"
# 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() click to toggle source

The path to the Gemfile for this installation. This is an output property.

@return [String] @example

file resources('bundle_install[/opt/myapp]').gemfile_path do
  owner 'root'
end
# File lib/poise_ruby/resources/bundle_install.rb, line 104
def gemfile_path
  @gemfile_path ||= provider_for_action(:gemfile_path).gemfile_path
end