Permalink
Browse files

Added capistrano as a dependency (duh).

  • Loading branch information...
1 parent 706bb05 commit 49b5e0b7bc0643b0c11c88f89ff533c5f79a0be0 @ncantor ncantor committed Nov 17, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −1 Gemfile
  2. +1 −0 capify-ec2.gemspec
  3. +2 −2 lib/capify-ec2/capistrano.rb
View
@@ -1,4 +1,4 @@
source "http://rubygems.org"
# Specify your gem's dependencies in capify-ec2.gemspec
-gemspec
+gemspec
View
@@ -20,4 +20,5 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.add_dependency('fog', '=1.0.0')
s.add_dependency('colored', '=1.2')
+ s.add_dependency('capistrano')
end
@@ -57,7 +57,7 @@ def ec2_roles(*roles)
remove_default_roles
server_address = named_instance.dns_name
named_instance.role.each do |role|
- define_role({:name => role, :options => {}}, named_instance)
+ define_role({:name => role, :options => {:on_no_matching_servers => :continue}}, named_instance)
end
end unless named_instance.nil?
@@ -120,7 +120,7 @@ def define_role(role, instance)
options = role[:options]
new_options = {}
options.each {|key, value| new_options[key] = true if value.to_s == instance.name}
- instance.option.each {|option| new_options[option.to_sym] = true} rescue false
+ instance.option.each { |option| new_options[option.to_sym] = true } rescue false
if new_options
role role[:name].to_sym, instance.dns_name, new_options

0 comments on commit 49b5e0b

Please sign in to comment.