Sha256: c9650f235de459ce238d8796f1383b802ce29a04735bfe215e4573f6da0815cd

Contents?: true

Size: 849 Bytes

Versions: 8

Compression:

Stored size: 849 Bytes

Contents

class freighthop::bundler(
  $ruby_version,
  $app_root,
){
  file { "${app_root}/.freighthop.gemfile":
    ensure => 'file',
    mode   => '0644',
    source => 'puppet:///modules/freighthop/bundler/freighthop.gemfile',
  }

  file { '/etc/profile.d/custom_bundler_gemfile.sh':
    ensure  => present,
    mode    => '0755',
    content => template('freighthop/profile/custom_bundler_gemfile.sh.erb'),
  }

  exec { 'bundle install':
    environment => [
      'BUNDLE_GEMFILE=.freighthop.gemfile',
      'RBENV_ROOT=/usr/lib/rbenv',
      "RBENV_VERSION=${ruby_version}",
    ],
    cwd         => $app_root,
    path        => [
      '/usr/lib/rbenv/shims',
      '/usr/bin',
      '/bin',
    ],
    logoutput   => true,
    timeout     => 0,
    unless      => 'bundle check',
    require     => File["${app_root}/.freighthop.gemfile"],
  }
}

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
freighthop-0.0.4 local_modules/freighthop/manifests/bundler.pp
freighthop-0.0.4 modules/freighthop/manifests/bundler.pp
freighthop-0.0.3 local_modules/freighthop/manifests/bundler.pp
freighthop-0.0.3 modules/freighthop/manifests/bundler.pp
freighthop-0.0.2 local_modules/freighthop/manifests/bundler.pp
freighthop-0.0.2 modules/freighthop/manifests/bundler.pp
freighthop-0.0.1 local_modules/freighthop/manifests/bundler.pp
freighthop-0.0.1 modules/freighthop/manifests/bundler.pp