This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >> d = Factory(:document) | |
| building 3 color_schemes | |
| building 2 page_with_layouts | |
| building 2 layouts | |
| building 2 layouts | |
| +------------------+------------------+---------------+------------------+------------------+------------+------------------+------------------+------------------+-------+---------+------------------+------------------+------------------+ | |
| | _id | hide_from_my_... | shortened_url | created_at | color_scheme_... | product_id | updated_at | _id | shortened_ics... | _type | user_id | shortened_goo... | shortened_map... | font_ids | | |
| +------------------+------------------+---------------+------------------+------------------+------------+------------------+------------------+------------------+-------+---------+------------------+------------------+------------------+ | |
| | 4ddff9bbc0ccb... | false | | Fri May 27 15... | color-scheme-1 | | Fri May 27 15... | 4ddff9bbc0ccb... | | | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >> d = Factory(:document) | |
| building 3 color_schemes | |
| building 2 page_with_layouts | |
| building 2 layouts | |
| building 2 layouts | |
| +------------------+------------------+---------------+------------------+------------------+------------+------------------+------------------+------------------+-------+---------+------------------+------------------+------------------+ | |
| | _id | hide_from_my_... | shortened_url | created_at | color_scheme_... | product_id | updated_at | _id | shortened_ics... | _type | user_id | shortened_goo... | shortened_map... | font_ids | | |
| +------------------+------------------+---------------+------------------+------------------+------------+------------------+------------------+------------------+-------+---------+------------------+------------------+------------------+ | |
| | 4ddff849c0ccb... | false | | Fri May 27 15... | color-scheme-1 | | Fri May 27 15... | 4ddff849c0ccb... | | | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Template | |
| include Mongoid::Document | |
| embeds_many :color_schemes, :as => :color_schemable | |
| end | |
| class Document | |
| include Mongoid::Document |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Template | |
| include Mongoid::Document | |
| embeds_one :color_scheme, :as => :color_schemable | |
| end | |
| class Document | |
| include Mongoid::Document |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % rake stats | |
| (in /Users/james/Sites/[REDACTED]/[REDACTED]) | |
| +----------------------+-------+-------+---------+---------+-----+-------+ | |
| | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | | |
| +----------------------+-------+-------+---------+---------+-----+-------+ | |
| | Controllers | 2446 | 1890 | 44 | 198 | 4 | 7 | | |
| | Helpers | 423 | 357 | 0 | 38 | 0 | 7 | | |
| | Models | 3708 | 2913 | 56 | 276 | 4 | 8 | | |
| | Libraries | 2009 | 1708 | 29 | 129 | 4 | 11 | | |
| | Functional tests | 2380 | 1959 | 32 | 0 | 0 | 0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # helper methods for factories | |
| def build_collection(model, number_to_build = 3) | |
| puts "building collection for #{model}" | |
| number_to_build.times.collect { Factory.build(model.to_sym) } | |
| end | |
| def create_collection(model, number_to_create = 3) | |
| puts "creating collection for #{model}" | |
| number_to_create.times.collect { Factory(model.to_sym) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - http://rubygems.org | |
| install: --no-rdoc --no-ri | |
| update: --no-rdoc --no-ri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/dev/redstamp/redstamp.com-app[master]$ cap production deploy | |
| <snip> | |
| triggering start callbacks for `production' | |
| * executing `require_recipes' | |
| triggering before callbacks for `require_recipes' | |
| * executing `validate_required_variables' | |
| * executing `production' | |
| triggering start callbacks for `deploy' | |
| * executing `multistage:ensure' | |
| * executing `require_recipes' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Running post script... | |
| Installing the bundle... | |
| + echo Rsyncing configuration... | |
| + rsync -av --progress '--log-format=%t [%p] %i %n' /home/deploy/apps/village/beta/config/village/beta/ /home/deploy/apps/village/beta/current/ | |
| + cd /home/deploy/apps/village/beta/current | |
| + echo 'Running post script...' | |
| + RUBY_VERSION=ree-1.8.7-2011.03 | |
| + GEM_HOME=/usr/local/rvm/gems/ree-1.8.7-2011.03 | |
| + RAILS_ENV=beta | |
| + GEM_PATH=/usr/local/rvm/gems/ree-1.8.7-2011.03:/usr/local/rvm/gems/ree-1.8.7-2011.03@global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % rvm info | |
| ree-1.8.7-2011.03: | |
| system: | |
| uname: "Linux app02.45257.blueboxgrid.com 2.6.18-238.5.1.el5.028stab085.3 #1 SMP Mon Mar 21 20:05:12 MSK 2011 x86_64 GNU/Linux" | |
| bash: "/bin/bash => GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)" | |
| zsh: "/usr/bin/zsh => zsh 4.3.10 (x86_64-unknown-linux-gnu)" | |
| rvm: |