auser-poolparty 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/PostInstall.txt CHANGED
@@ -1,13 +1,13 @@
1
- Get ready to jump in the pool, you just installed PoolParty!
1
+ Get ready to jump in the pool, you just installed poolpartyrb!
2
2
 
3
3
  To get started, run the generator:
4
4
 
5
5
  pool spec <name>
6
6
 
7
7
  Please check out the documentation for any questions or check out the google groups at
8
- http://groups.google.com/group/PoolPartyrb
8
+ http://groups.google.com/group/poolpartyrb
9
9
 
10
- Don't forget to check out the plugin tutorial @ http://PoolPartyrb.com for extending PoolParty!
10
+ Don't forget to check out the plugin tutorial @ http://poolpartyrb.com for extending PoolParty!
11
11
 
12
12
  For more information, check http://PoolPartyrb.com
13
13
  On IRC:
data/config/hoe.rb CHANGED
@@ -13,7 +13,8 @@ DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
13
13
  EXTRA_DEPENDENCIES = [
14
14
  ['activesupport'],
15
15
  ['open4'],
16
- ['logging']
16
+ ['logging'],
17
+ ["ruby2ruby"]
17
18
  ] # An array of rubygem dependencies [name, version]
18
19
 
19
20
  @config_file = "~/.rubyforge/user-config.yml"
data/lib/poolparty.rb CHANGED
@@ -19,7 +19,7 @@ require "#{File.dirname(__FILE__)}/poolparty/version"
19
19
  end
20
20
  end
21
21
 
22
- Kernel.load_p File.dirname(__FILE__) + "/poolparty/pool/**"
22
+ Kernel.load_p File.dirname(__FILE__) + "/poolparty/pool"
23
23
 
24
24
  module PoolParty
25
25
  include FileWriter
@@ -11,6 +11,7 @@ module PoolParty
11
11
  has_gempackage(:name => "logging")
12
12
  has_gempackage(:name => "hoe")
13
13
  has_gempackage(:name => "xml-simple")
14
+ has_gempackage(:name => "ruby2ruby")
14
15
 
15
16
  has_gempackage(:name => "grempe-amazon-ec2", :source => "http://gems.github.com", :requires => 'Package["xml-simple"]')
16
17
  has_gempackage(:name => "auser-poolparty", :source => "http://gems.github.com", :requires => 'Package["activesupport", "logging", "hoe", "open4"]')
@@ -13,6 +13,8 @@ module PoolParty
13
13
  has_package(:name => "ruby1.8")
14
14
  has_package(:name => "rubygems")
15
15
 
16
+ has_line_in_file("export PATH=$PATH:/var/lib/gems/1.8/bin/", "/etc/profile")
17
+
16
18
  # exec(:name => "update-rubygems") do
17
19
  # command "gem update --system"
18
20
  # onlyif "gem -v | grep 1."
@@ -11,7 +11,7 @@ module Kernel
11
11
  end
12
12
  def load_p(dir)
13
13
  Dir["#{dir}/**"].each do |file|
14
- File.directory?(file) ? load_p(file) : (require "#{file}")
14
+ ::File.directory?(file) ? load_p(file) : (require "#{file}")
15
15
  end
16
16
  end
17
17
  def with_warnings_suppressed
@@ -117,10 +117,10 @@ mv #{Base.remote_storage_path}/#{Base.tmp_path}/#{@cloud.full_keypair_name} #{@c
117
117
  EOS
118
118
  end
119
119
 
120
- # ps aux | grep puppetmasterd | awk '{print $2}' | xargs kill
121
- # rm -rf /etc/puppet/ssl
122
120
  def start_puppetmaster
123
121
  <<-EOS
122
+ ps aux | grep puppetmasterd | awk '{print $2}' | xargs kill
123
+ rm -rf /etc/puppet/ssl
124
124
  puppetmasterd
125
125
  EOS
126
126
  end
@@ -107,24 +107,27 @@ module PoolParty
107
107
 
108
108
  # Configuration files
109
109
  def build_manifest
110
- reset_resources!
111
- add_poolparty_base_requirements
112
-
113
- returning Array.new do |str|
114
-
115
- str << resources_string_from_resources(resources)
116
-
117
- # Refactor this into the resources method
118
- # TODO
119
- services.each do |service|
120
- @cp = classpackage_with_self(service)
121
- str << @cp.to_string
122
- str << @cp.include_string
123
- end
124
-
125
- str << "# Custom functions"
126
- str << Resources::CustomResource.custom_functions_to_string
127
- end.join("\n")
110
+ unless @build_manifest
111
+ reset_resources!
112
+ add_poolparty_base_requirements
113
+
114
+ @build_manifest = returning Array.new do |str|
115
+
116
+ str << resources_string_from_resources(resources)
117
+
118
+ # Refactor this into the resources method
119
+ # TODO
120
+ services.each do |service|
121
+ @cp = classpackage_with_self(service)
122
+ str << @cp.to_string
123
+ str << @cp.include_string
124
+ end
125
+
126
+ str << "# Custom functions"
127
+ str << Resources::CustomResource.custom_functions_to_string
128
+ end.join("\n")
129
+ end
130
+ @build_manifest
128
131
  end
129
132
 
130
133
  # To allow the remote instances to do their job,
@@ -245,4 +245,6 @@ module PoolParty
245
245
  end
246
246
 
247
247
  end
248
- end
248
+ end
249
+
250
+ Kernel.load_p File.dirname(__FILE__) + "/resources/*"
@@ -2,7 +2,7 @@ module PoolParty
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/poolparty.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{poolparty}
3
- s.version = "0.2.4"
3
+ s.version = "0.2.5"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Ari Lerner"]
@@ -12,18 +12,18 @@ Gem::Specification.new do |s|
12
12
  s.files = ["History.txt", "License.txt", "Manifest.txt", "PostInstall.txt", "README.txt", "Rakefile", "bin/cloud", "bin/cloud-add-keypair", "bin/cloud-configure", "bin/cloud-contract", "bin/cloud-expand", "bin/cloud-list", "bin/cloud-maintain", "bin/cloud-osxcopy", "bin/cloud-provision", "bin/cloud-refresh", "bin/cloud-ssh", "bin/cloud-start", "bin/cloud-terminate", "bin/pool", "bin/pool-console", "bin/pool-describe", "bin/pool-list", "bin/pool-provision", "bin/pool-spec", "bin/pool-start", "bin/pool-start-monitor", "config/hoe.rb", "config/requirements.rb", "examples/basic.rb", "examples/plugin_without_plugin_directory.rb", "examples/poolparty.rb", "examples/with_apache_plugin.rb", "generators/poolspec/USAGE", "generators/poolspec/poolspec_generator.rb", "generators/poolspec/templates/pool_spec_template.erb", "lib/erlang/eb_server.erl", "lib/poolparty.rb", "lib/poolparty/base_packages/haproxy.rb", "lib/poolparty/base_packages/heartbeat.rb", "lib/poolparty/base_packages/poolparty.rb", "lib/poolparty/base_packages/ruby.rb", "lib/poolparty/core/array.rb", "lib/poolparty/core/exception.rb", "lib/poolparty/core/float.rb", "lib/poolparty/core/hash.rb", "lib/poolparty/core/kernel.rb", "lib/poolparty/core/module.rb", "lib/poolparty/core/my_open_struct.rb", "lib/poolparty/core/object.rb", "lib/poolparty/core/proc.rb", "lib/poolparty/core/string.rb", "lib/poolparty/core/symbol.rb", "lib/poolparty/core/time.rb", "lib/poolparty/exceptions/RemoteException.rb", "lib/poolparty/exceptions/ResourceException.rb", "lib/poolparty/exceptions/RuntimeException.rb", "lib/poolparty/exceptions/SpecException.rb", "lib/poolparty/exceptions/TemplateNotFound.rb", "lib/poolparty/helpers/binary.rb", "lib/poolparty/helpers/console.rb", "lib/poolparty/helpers/display.rb", "lib/poolparty/helpers/optioner.rb", "lib/poolparty/helpers/provisioner_base.rb", "lib/poolparty/helpers/provisioners/master.rb", "lib/poolparty/helpers/provisioners/slave.rb", "lib/poolparty/modules/cloud_resourcer.rb", "lib/poolparty/modules/configurable.rb", "lib/poolparty/modules/definable_resource.rb", "lib/poolparty/modules/file_writer.rb", "lib/poolparty/modules/method_missing_sugar.rb", "lib/poolparty/modules/output.rb", "lib/poolparty/modules/pretty_printer.rb", "lib/poolparty/modules/s3_string.rb", "lib/poolparty/modules/safe_instance.rb", "lib/poolparty/monitors/base_monitor.rb", "lib/poolparty/net/remote.rb", "lib/poolparty/net/remote_bases/ec2.rb", "lib/poolparty/net/remote_instance.rb", "lib/poolparty/net/remoter.rb", "lib/poolparty/net/remoter_base.rb", "lib/poolparty/plugins/gem_package.rb", "lib/poolparty/plugins/git.rb", "lib/poolparty/plugins/line.rb", "lib/poolparty/plugins/svn.rb", "lib/poolparty/pool/base.rb", "lib/poolparty/pool/cloud.rb", "lib/poolparty/pool/custom_resource.rb", "lib/poolparty/pool/loggable.rb", "lib/poolparty/pool/plugin.rb", "lib/poolparty/pool/plugin_model.rb", "lib/poolparty/pool/pool.rb", "lib/poolparty/pool/resource.rb", "lib/poolparty/pool/resources/class_package.rb", "lib/poolparty/pool/resources/conditional.rb", "lib/poolparty/pool/resources/cron.rb", "lib/poolparty/pool/resources/directory.rb", "lib/poolparty/pool/resources/exec.rb", "lib/poolparty/pool/resources/file.rb", "lib/poolparty/pool/resources/gem.rb", "lib/poolparty/pool/resources/host.rb", "lib/poolparty/pool/resources/package.rb", "lib/poolparty/pool/resources/remote_file.rb", "lib/poolparty/pool/resources/service.rb", "lib/poolparty/pool/resources/sshkey.rb", "lib/poolparty/pool/resources/variable.rb", "lib/poolparty/pool/script.rb", "lib/poolparty/templates/authkeys", "lib/poolparty/templates/cib.xml", "lib/poolparty/templates/fileserver.conf", "lib/poolparty/templates/gem", "lib/poolparty/templates/ha.cf", "lib/poolparty/templates/haproxy.conf", "lib/poolparty/templates/namespaceauth.conf", "lib/poolparty/templates/puppet.conf", "lib/poolparty/version.rb", "lib/poolpartycl.rb", "poolparty.gemspec", "script/destroy", "script/generate", "script/txt2html", "setup.rb", "spec/poolparty/base_packages/haproxy_spec.rb", "spec/poolparty/base_packages/heartbeat_spec.rb", "spec/poolparty/bin/console_spec.rb", "spec/poolparty/core/array_spec.rb", "spec/poolparty/core/float.rb", "spec/poolparty/core/hash_spec.rb", "spec/poolparty/core/kernel_spec.rb", "spec/poolparty/core/module_spec.rb", "spec/poolparty/core/object_spec.rb", "spec/poolparty/core/string_spec.rb", "spec/poolparty/core/time_spec.rb", "spec/poolparty/helpers/binary_spec.rb", "spec/poolparty/helpers/display_spec.rb", "spec/poolparty/helpers/optioner_spec.rb", "spec/poolparty/helpers/provisioner_base_spec.rb", "spec/poolparty/helpers/provisioners/master_spec.rb", "spec/poolparty/helpers/provisioners/slave_spec.rb", "spec/poolparty/modules/cloud_resourcer_spec.rb", "spec/poolparty/modules/configurable_spec.rb", "spec/poolparty/modules/definable_resource.rb", "spec/poolparty/modules/file_writer_spec.rb", "spec/poolparty/modules/s3_string_spec.rb", "spec/poolparty/modules/tmp/willy/nilly.rb", "spec/poolparty/net/remote_bases/ec2_spec.rb", "spec/poolparty/net/remote_instance_spec.rb", "spec/poolparty/net/remote_spec.rb", "spec/poolparty/net/remoter_base_spec.rb", "spec/poolparty/net/remoter_spec.rb", "spec/poolparty/plugins/git_spec.rb", "spec/poolparty/plugins/line_spec.rb", "spec/poolparty/plugins/svn_spec.rb", "spec/poolparty/pool/base_spec.rb", "spec/poolparty/pool/cloud_spec.rb", "spec/poolparty/pool/configurers/files/ruby_basic.rb", "spec/poolparty/pool/configurers/files/ruby_plugins.rb", "spec/poolparty/pool/configurers/ruby_spec.rb", "spec/poolparty/pool/custom_resource_spec.rb", "spec/poolparty/pool/example_spec.rb", "spec/poolparty/pool/plugin_model_spec.rb", "spec/poolparty/pool/plugin_spec.rb", "spec/poolparty/pool/pool_spec.rb", "spec/poolparty/pool/resource_spec.rb", "spec/poolparty/pool/resources/class_package_spec.rb", "spec/poolparty/pool/resources/conditional_spec.rb", "spec/poolparty/pool/resources/cron_spec.rb", "spec/poolparty/pool/resources/directory_spec.rb", "spec/poolparty/pool/resources/exec_spec.rb", "spec/poolparty/pool/resources/file_spec.rb", "spec/poolparty/pool/resources/gem_spec.rb", "spec/poolparty/pool/resources/host_spec.rb", "spec/poolparty/pool/resources/package_spec.rb", "spec/poolparty/pool/resources/remote_file_spec.rb", "spec/poolparty/pool/resources/service_spec.rb", "spec/poolparty/pool/resources/sshkey_spec.rb", "spec/poolparty/pool/resources/variable_spec.rb", "spec/poolparty/pool/script_spec.rb", "spec/poolparty/pool/test_plugins/sshkey_test", "spec/poolparty/pool/test_plugins/virtual_host_template.erb", "spec/poolparty/pool/test_plugins/webserver.rb", "spec/poolparty/poolparty_spec.rb", "spec/poolparty/spec_helper.rb", "tasks/cloud.rake", "tasks/deployment.rake", "tasks/development.rake", "tasks/ec2.rake", "tasks/environment.rake", "tasks/instance.rake", "tasks/server.rake", "tasks/spec.rake", "tasks/website.rake", "test/test_generator_helper.rb", "test/test_helper.rb", "test/test_pool_spec_generator.rb", "test/test_poolparty.rb", "test_manifest.pp", "website/index.html", "website/index.txt", "website/javascripts/rounded_corners_lite.inc.js", "website/stylesheets/screen.css", "website/template.html.erb"]
13
13
  s.has_rdoc = true
14
14
  s.homepage = %q{http://poolparty.rubyforge.org}
15
- s.post_install_message = %q{Get ready to jump in the pool, you just installed PoolParty!
15
+ s.post_install_message = %q{Get ready to jump in the pool, you just installed poolpartyrb!
16
16
 
17
17
  To get started, run the generator:
18
18
 
19
19
  pool spec <name>
20
20
 
21
21
  Please check out the documentation for any questions or check out the google groups at
22
- http://groups.google.com/group/PoolPartyrb
22
+ http://groups.google.com/group/poolpartyrb
23
23
 
24
- Don't forget to check out the plugin tutorial @ http://PoolPartyrb.com for extending PoolParty!
24
+ Don't forget to check out the plugin tutorial @ http://poolpartyrb.com for extending PoolParty!
25
25
 
26
- For more information, check http://PoolPartyrb.com
26
+ For more information, check http://poolpartyrb.com
27
27
  On IRC:
28
28
  irc.freenode.net
29
29
  #PoolPartyrb
@@ -44,17 +44,20 @@ On IRC:
44
44
  s.add_runtime_dependency(%q<activesupport>, [">= 0"])
45
45
  s.add_runtime_dependency(%q<open4>, [">= 0"])
46
46
  s.add_runtime_dependency(%q<logging>, [">= 0"])
47
+ s.add_runtime_dependency(%q<ruby2ruby>, [">= 0"])
47
48
  s.add_development_dependency(%q<hoe>, [">= 1.7.0"])
48
49
  else
49
50
  s.add_dependency(%q<activesupport>, [">= 0"])
50
51
  s.add_dependency(%q<open4>, [">= 0"])
51
52
  s.add_dependency(%q<logging>, [">= 0"])
53
+ s.add_dependency(%q<ruby2ruby>, [">= 0"])
52
54
  s.add_dependency(%q<hoe>, [">= 1.7.0"])
53
55
  end
54
56
  else
55
57
  s.add_dependency(%q<activesupport>, [">= 0"])
56
58
  s.add_dependency(%q<open4>, [">= 0"])
57
59
  s.add_dependency(%q<logging>, [">= 0"])
60
+ s.add_dependency(%q<ruby2ruby>, [">= 0"])
58
61
  s.add_dependency(%q<hoe>, [">= 1.7.0"])
59
62
  end
60
63
  end
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>PoolParty</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/PoolParty"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/PoolParty" class="numbers">0.2.4</a>
36
+ <a href="http://rubyforge.org/projects/PoolParty" class="numbers">0.2.5</a>
37
37
  </div>
38
38
  <h1>&amp;#x2192; &#8216;Easy cloud computing&#8217;</h1>
39
39
  <h2>What</h2>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auser-poolparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Lerner
@@ -39,6 +39,15 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: "0"
41
41
  version:
42
+ - !ruby/object:Gem::Dependency
43
+ name: ruby2ruby
44
+ version_requirement:
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: "0"
50
+ version:
42
51
  - !ruby/object:Gem::Dependency
43
52
  name: hoe
44
53
  version_requirement:
@@ -288,18 +297,18 @@ files:
288
297
  has_rdoc: true
289
298
  homepage: http://poolparty.rubyforge.org
290
299
  post_install_message: |-
291
- Get ready to jump in the pool, you just installed PoolParty!
300
+ Get ready to jump in the pool, you just installed poolpartyrb!
292
301
 
293
302
  To get started, run the generator:
294
303
 
295
304
  pool spec <name>
296
305
 
297
306
  Please check out the documentation for any questions or check out the google groups at
298
- http://groups.google.com/group/PoolPartyrb
307
+ http://groups.google.com/group/poolpartyrb
299
308
 
300
- Don't forget to check out the plugin tutorial @ http://PoolPartyrb.com for extending PoolParty!
309
+ Don't forget to check out the plugin tutorial @ http://poolpartyrb.com for extending PoolParty!
301
310
 
302
- For more information, check http://PoolPartyrb.com
311
+ For more information, check http://poolpartyrb.com
303
312
  On IRC:
304
313
  irc.freenode.net
305
314
  #PoolPartyrb