Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added app bundled dep

  • Loading branch information...
commit ac3181d428a89be86b582bd977579766591d1995 1 parent 695b108
Ivan Vanderbyl authored April 17, 2012

Showing 1 changed file with 19 additions and 0 deletions. Show diff stats Hide diff stats

  1. 19  bundler.rb
19  bundler.rb
... ...
@@ -0,0 +1,19 @@
  1
+dep 'app bundled', :root, :env do
  2
+  requires_when_unmet Dep('current dir:packages')
  3
+  met? {
  4
+    if !(root / 'Gemfile').exists?
  5
+      log "No Gemfile - skipping bundling."
  6
+      true
  7
+    else
  8
+      shell? 'bundle check', :cd => root, :log => true
  9
+    end
  10
+  }
  11
+  meet {
  12
+    install_args = %w[development test].include?(env) ? '' : "--deployment --without 'development test'"
  13
+    unless shell("bundle install #{install_args}", :cd => root, :log => true)
  14
+      confirm("Try a `bundle update`", :default => 'n') {
  15
+        shell 'bundle update', :cd => root, :log => true
  16
+      }
  17
+    end
  18
+  }
  19
+end

0 notes on commit ac3181d

Please sign in to comment.
Something went wrong with that request. Please try again.