![]() |
# File: README [ "README", "AUTHORS", "COPYING", "lib/bivouac/helpers/view/goh/base.rb", "lib/bivouac/helpers/view/goh/form.rb", "lib/bivouac/helpers/view/goh/html.rb", "lib/bivouac/helpers/view/goh/sound.rb", "lib/bivouac/helpers/view/goh/scriptaculous.rb", "lib/bivouac/helpers/view/goh/javascript.rb", nil].each do JavaScriptGenerator.view_html BivouacHelpers.view_html BivouacHelpers::SoundView.view_html BivouacHelpers::ScriptAculoUsView.view_html BivouacHelpers::BaseView.view_html BivouacHelpers::JavaScriptView.view_html BivouacHelpers::HtmlView.view_html BivouacHelpers::FormView.view_html end |
Copyright (C) 2007, 2008 Gregoire Lejeune
Bivouac is a simple generator for camping.
http://blog.codahale.com/2006/01/14/a-rails-howto-simplify-in-place-editing-with-scriptaculous/ Example at http://bivouac.rubyforge.org/svn/trunk/bivouac/examples/bivouac_sample/
ruby script/generate model user name:string mail:string
Usage: server [thin|mongrel|webrick] [option]
-p port : Runs Bivouac on the specified port (default 3301) -b ip : Binds Bivouac to the specified ip (default 0.0.0.0) -d start|stop|restart : Make server run as a Daemon.
gem install backpack
@headers['X-Sendfile'] = File.join PATH, '..', 'public', file replaced by @body = open( File.join( PATH, '..', 'public', file ) )
$ ruby script/server webrick [options]
$ bivouac -h
$ ruby script/generate test my_test_name
To run a test, juste do :
$ ruby test/test_my_test_name.rb
$ ruby script/server -d start
Then stop your server with :
$ ruby script/server -d stop
If you don‘t want to demonize you app, just do
$ ruby script/server
% bivouac -h Usage: bivouac [options] app bivouac, the generator for the microframework ON-button for ruby 1.8.6 (2007-06-07) [universal-darwin9.0] Specific options: -P, --port PORT Which port to bind to (3301) -a, --address ADDR Address to bind to (0.0.0.0) Common options: -?, --help Show this message -v, --version Show version % bivouac your_app_name ... % cd your_app_name % ruby script/generate -h Usage: script/generate generator [options] [args] Generators Builtin: controller, model, migrate, view controller generator options: -v, --no-view Do not generate any view for the controller -d, --no-route Do not add the default route to the controller (/controller_name) -r, --route ROUTE,ROUTE,... Add ROUTES to the controller Common options: -h, --help Show this message % ruby script/generate controller your_controller ... % ruby script/server ...
sudo gem install bivouac
or
sudo gem install bivouac --source=http://dev.rubyfr.net
Bivouac is freely distributable according to the terms of the GNU General Public License.
This program is distributed without any warranty. See the file ‘COPYING’ for details.