-
Notifications
You must be signed in to change notification settings - Fork 2
/
05-hobo-as-plugin-sidebar.patch
56 lines (30 loc) · 1.4 KB
/
05-hobo-as-plugin-sidebar.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
hobo-as-plugin-sidebar
From: Bryan Larsen <[email protected]>
OUTPUT_FILE: hobo-as-plugin.markdown
Agility: Hobo as Plugin Sidebar
{: .document-title}
Contents
{: .contents-heading}
- contents
{:toc}
# Hobo as Plugin Sidebar
You may wish to run Hobo as a plugin rather than as a gem.
## Run rails generator
The first step is to run the standard rails generator:
$ rails agility
$ cd agility
## Install as a plugin
$ git submodule add git://github.com/tablatom/hobo.git vendor/plugins/hobo
## Run hobo command
To run the hobo command when it's installed as a plugin instead of a gem:
$ ./vendor/plugins/hobo/hobo/bin/hobo --no-rails
(This command will fail if you don't have the hobo gem install. Don't worry about this and follow the next step).
## Comment out gem statement
The hobo command generates a setup designed to be used with the hobo gem. If you wish to use the plugin, comment out `config.gem 'hobo'` in *config/environment.rb*.
## Run hobo command again
Now that we've fixed config/environment.rb, we can run `hobo` again, and it will run to completion. This is only necessary if it failed previously.
$ ./vendor/plugins/hobo/hobo/bin/hobo --no-rails
## Fix Rakefile
The hobo command sets up the Rakefile to use the gem. Let's fix it so that it works with the plugin by removing the `require 'hobo/tasks/rails'` line.
---
0 files changed, 0 insertions(+), 0 deletions(-)