Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow bundler/vlad to work in vlad deploy scripts

Fixes:
 Undefined Capistrano constant when using vlad
 Rake::FetchError on :default_roles

Closes #892, #903
  • Loading branch information...
commit 2bbc732e6fbdbef902c6967a312152fd203836c0 1 parent 93fcbd7
Eric Coleman ecoleman authored indirect committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bundler/deployment.rb
4 lib/bundler/deployment.rb
View
@@ -1,7 +1,7 @@
module Bundler
class Deployment
def self.define_task(context, task_method = :task, opts = {})
- if context.is_a?(Capistrano::Configuration)
+ if defined?(Capistrano) && context.is_a?(Capistrano::Configuration)
context_name = "capistrano"
role_default = "{:except => {:no_release => true}}"
else
@@ -9,7 +9,7 @@ def self.define_task(context, task_method = :task, opts = {})
role_default = "[:app]"
end
- roles = context.fetch(:bundle_roles, nil)
+ roles = context.fetch(:bundle_roles, false)
opts[:roles] = roles if roles
context.send :namespace, :bundle do
Please sign in to comment.
Something went wrong with that request. Please try again.