Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (20 sloc) 739 Bytes
dep 'app bundled', :root, :env do
deprecated! "2013-12-12", :method_name => "'benhoskings:app bundled'", :callpoint => false, :instead => "'common:app bundled'"
requires_when_unmet Dep('current dir:packages')
met? {
if !(root / 'Gemfile').exists?
log "No Gemfile - skipping bundling."
true
else
shell? 'bundle check', :cd => root, :log => true
end
}
meet {
install_args = %w[development test].include?(env) ? '' : "--deployment --without 'development test'"
unless shell("bundle install #{install_args} | grep -v '^Using '", :cd => root, :log => true)
confirm("Try a `bundle update`", :default => 'n') {
shell 'bundle update', :cd => root, :log => true
}
end
}
end