Hi Ronald,
I see part of what's going on. That doesn't work for my setup (more on
this in a minute):
$ rake skyline:test
(in /Users/woods/src/git/...)
rake aborted!
Don't know how to build task 'skyline:test'
(See full trace by running task with --trace)
Here are the skyline tasks that are available:
$ rake -T skyline
(in /Users/woods/src/git/...)
rake skyline:db:migrate # Migrate the skyline migrations
rake skyline:db:migrate:down # Runs the "down" for a given migration
VERSION.
rake skyline:db:migrate:redo # Rollbacks the database one migration
and re migrate up.
rake skyline:db:migrate:reset # Resets your database using your
migrations for the current environment
rake skyline:db:migrate:up # Runs the "up" for a given migration
VERSION.
rake skyline:db:rollback # Rolls the schema back to the previous
version.
rake skyline:db:seed # Run all seed files in Skyline.root/db/
fixtures/**
I think this is due to the fact that I have skyline installed as a
gem:
$ rake gems
(in /Users/woods/src/git/...)
- [R] skylinecms
- [I] haml = 2.2.15
- [I] compass = 0.8.17
- [I] haml >= 2.2.0
- [R] hoptoad_notifier = 2.2.2
- [I] crack
- [I] annotate = 2.4.0
- [I] capistrano-helpers
- [I] capistrano >= 2.0.0
- [I] net-ssh >= 2.0.14
- [I] net-sftp >= 2.0.0
- [I] net-ssh >= 1.99.1
- [I] net-scp >= 1.0.0
- [I] net-ssh >= 1.99.1
- [I] net-ssh-gateway >= 1.0.0
- [I] net-ssh >= 1.99.1
- [I] highline
- [I] newrelic_rpm = 2.9.9
I = Installed
F = Frozen
R = Framework (loaded before rails starts)
And it looks like you have it installed as a plugin. I tried running
it as a vendored gem, and I could get the rake tasks included by
adding the following line to my Rakefile:
Dir["#{RAILS_ROOT}/vendor/gems/*/tasks/**/*.rake"].sort.each { |ext|
load ext }
But then I still didn't have any luck running the tests by hand as a
vendored gem.
I guess this brings up a good question: what is the preferred way to
run Skyline? Vendored gem, installed gem, or plugin? Are all three
methods recommended, or are some discouraged?
Thanks again!
Scott