Permalink
Browse files

Merge branch 'master' of git://github.com/ezmobius/nanite

* 'master' of git://github.com/ezmobius/nanite: (123 commits)
  updating rabbitmq rake tasks to sue curl which is instakled more plced then wget
  adding nanite.gemspec so github builds  a gem
  touch up output
  remove useless example of using nanite from webapps. TODO: document using memcached for returning results to web app
  Updated instructions for amqp installation.  Require version >= 0.6.0.
  Whitespace
  A few minor doc text updates.
  Typo and more explicitly define 'LA'
  Fix the aforementioned tasks to actually start rabbit.
  experimental rake tasks to control rabbitmq.
  added ability to stream abitrary data from an IO object
  updated FileStreamer to use refactored packages
  Remove "make run" step since we ran "make" already. "make run" would place the database in /tmp.
  Update readme with complete instructions to build from source, including python prereqs
  RabbitMQ does not require eunit, and some distributions do not even include eunit
  Consolidate some example related code to the examples dir.
  Document the warning filled install of async Thin.
  Register actors in the init.rb for agents to allow actors to not be auto-loaded if needed
  Correct documentation after refactoring
  Add dependencies to gemspec
  ...
  • Loading branch information...
2 parents e407757 + df4993c commit d2fa9a1484944e43432da3abc9d8df0fb02d2ef8 @raggi committed Jan 27, 2009
Showing with 32 additions and 5 deletions.
  1. +0 −1 Rakefile
  2. +1 −2 bin/nanite-admin
  3. +21 −0 nanite.gemspec
  4. +10 −2 tasks/rabbitmq.rake
View
@@ -30,7 +30,6 @@ spec = Gem::Specification.new do |s|
s.add_dependency('amqp', '>= 0.6.0')
s.require_path = 'lib'
- #s.autorequire = GEM
s.files = %w(LICENSE README.rdoc Rakefile TODO) + Dir.glob("{lib,bin,specs}/**/*")
end
View
@@ -38,7 +38,6 @@ require 'thin'
EM.run do
agent = Nanite.start(:log_level => 'info', :mapper => true, :host => 'localhost', :user => 'mapper', :pass => 'testing', :vhost => '/nanite')
- puts "starting agent"
- puts "running thin"
+ puts "starting nanite-admin"
Rack::Handler::Thin.run Nanite::Admin.new(agent), :Port => 4000
end
View
@@ -0,0 +1,21 @@
+spec = Gem::Specification.new do |s|
+ s.name = "nanite"
+ s.version = "0.2.0"
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = true
+ s.extra_rdoc_files = ["README.rdoc", "LICENSE", 'TODO']
+ s.summary = "self assembling fabric of ruby daemons"
+ s.description = s.summary
+ s.author = "Ezra Zygmuntowicz"
+ s.email = "ezra@engineyard.com"
+ s.homepage = "http://github.com/ezmobius/nanite"
+
+ s.bindir = "bin"
+ s.executables = %w( nanite nanite-mapper nanite-admin )
+
+ s.add_dependency "extlib"
+ s.add_dependency('amqp', '>= 0.6.0')
+
+ s.require_path = 'lib'
+ s.files = %w(LICENSE README.rdoc Rakefile TODO) + Dir.glob("{lib,bin,specs}/**/*")
+end
View
@@ -1,4 +1,5 @@
# Inspired by rabbitmq.rake the Redbox project at http://github.com/rick/redbox/tree/master
+require 'fileutils'
class RabbitMQ
@@ -46,9 +47,14 @@ class RabbitMQ
end
namespace :rabbitmq do
+
+ task :ensure_directories do
+ FileUtils.mkdir_p("tmp")
+ FileUtils.mkdir_p("log")
+ end
desc "Start RabbitMQ"
- task :start do
+ task :start => :ensure_directories do
RabbitMQ.start
end
@@ -66,8 +72,10 @@ namespace :rabbitmq do
desc "Download package"
task :download do
+ FileUtils.mkdir_p("vendor")
Dir.chdir("vendor") do
- system "wget http://www.rabbitmq.com/releases/rabbitmq-server/v1.5.0/rabbitmq-server-1.5.0.tar.gz"
+ system "curl http://www.rabbitmq.com/releases/rabbitmq-server/v1.5.0/rabbitmq-server-1.5.0.tar.gz -O &&
+ tar xvzf rabbitmq-server-1.5.0.tar.gz"
end
end

0 comments on commit d2fa9a1

Please sign in to comment.