Write apps. Deploy them.
I learnt most stuff for myself. Eventually I got into #caboose and was able to ask a lot more questions directly to the people that wrote rails + the plugins I used.
| diff --git a/jobs/mysql_gateway/templates/mysql_gateway.yml.erb b/jobs/mysql_gateway/templates/mysql_gateway.yml.erb | |
| index 82c41f3..8aa1059 100644 | |
| --- a/jobs/mysql_gateway/templates/mysql_gateway.yml.erb | |
| +++ b/jobs/mysql_gateway/templates/mysql_gateway.yml.erb | |
| @@ -19,6 +19,7 @@ nats_props = properties.send(nats_props_name) | |
| nats = "nats://#{nats_props.user}:#{nats_props.password}@#{nats_props.address}:#{nats_props.port}" | |
| lifecycle = properties.service_lifecycle | |
| cc_api_version = gateway.cc_api_version || "v1" | |
| +unique_id = 'foobar_mysql_uniq' | |
| %> |
| #!/usr/bin/env sh | |
| # http://raamdev.com/2008/howto-install-md5sum-sha1sum-on-mac-os-x/ | |
| if ! which md5 > /dev/null; then | |
| echo "md5 should be on your OS X" | |
| exit 1 | |
| fi | |
| if ! which curl > /dev/null; then |
| twitter.json |
Write apps. Deploy them.
I learnt most stuff for myself. Eventually I got into #caboose and was able to ask a lot more questions directly to the people that wrote rails + the plugins I used.
| rake check_manifest # debug # Verify the manifest. | |
| rake clean # # Clean up all the extras. | |
| rake config_hoe # debug # Create a fresh ~/.hoerc file. | |
| rake docs # publish # Build the RDoc HTML Files | |
| rake install_gem # package # Install the package as a gem. | |
| rake multi # test # Run the test suite using multiruby. | |
| rake release # package # Package and upload the release. | |
| rake test # test # Run the test suite. | |
| # should probably just go on clean or clobber |
| #!/usr/bin/env ruby -rubygems | |
| require 'restclient' | |
| require 'json' | |
| # Let's count all the words in Shakespeare. | |
| RestClient.post('http://cloud-crowd.local/jobs', | |
| {:job => { | |
| # Enable Webrat's Selenium mode if one or more scenarios is tagged @selenium | |
| Webrat.configure do |config| | |
| config.mode = :rails | |
| ObjectSpace.each_object(Cucumber::Ast::Features) do |features| | |
| config.mode = :selenium if features.tag_count('selenium').nonzero? | |
| end | |
| end |
| require("spec_helper.js"); | |
| require("../../public/javascripts/add_data.js"); | |
| Screw.Unit(function(){ | |
| describe("AddData", function(){ | |
| describe('adding rows', function() { | |
| ...snip... |
| # SUPER DARING APP TEMPLATE 1.0 | |
| # By Peter Cooper | |
| # Link to local copy of edge rails | |
| inside('vendor') { run 'ln -s ~/dev/rails/rails rails' } | |
| # Delete unnecessary files | |
| run "rm README" | |
| run "rm public/index.html" | |
| run "rm public/favicon.ico" |