lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.2 vs lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.3
- old
+ new
@@ -1,15 +1,21 @@
module PoolParty
class Base
plugin :poolparty do
- def enable
+ def enable
has_package(:name => "erlang")
- has_gem_package(:name => "auser-poolparty", :source => "http://gems.github.com")
+ # These should be installed automagically by poolparty, but just in case
+ has_gempackage(:name => "open4")
+ has_gempackage(:name => "activesupport")
+ has_gempackage(:name => "logging")
+
+ has_gempackage(:name => "grempe-amazon-ec2", :source => "http://gems.github.com")
+ has_gempackage(:name => "auser-poolparty", :source => "http://gems.github.com")
# Build hostsfile
# TODO: COME BACK AND CLEAN THIS UP
- (self.respond_to?(:remote_instances_list) ? self : parent).remote_instances_list.each do |ri|
+ (self.respond_to?(:list_of_running_instances) ? self : parent).list_of_running_instances.each do |ri|
has_host({:name => "#{ri.name}", :ip => ri.ip })
end
end
end
\ No newline at end of file