Put most of bess into the Houdini module
This commit is contained in:
parent
7b94d1ea44
commit
9500c47ab6
5 changed files with 12 additions and 13 deletions
|
@ -4,12 +4,7 @@ configuration into a separate Gem. We call this support library Bess, in honor o
|
||||||
Harry Houdini's wife and long-time assistant, Bess Houdini.
|
Harry Houdini's wife and long-time assistant, Bess Houdini.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
Everything you can get via `Bess` is accessible via `Houdini` in the main houdini app.
|
Everything you can get via `Bess` is accessible via the `Houdini` module in the main houdini app.
|
||||||
|
|
||||||
As an example, let's say Bess has a string constant named `Bess::PRESTO`. From
|
|
||||||
your Houdini app, you can use `Houdini::PRESTO` to access this constant.
|
|
||||||
|
|
||||||
We recommend using this pattern.
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
This really should only be used in Houdini itself for now.
|
This really should only be used in Houdini itself for now.
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||||
require "bess/railtie"
|
require_relative './houdini'
|
||||||
|
|
||||||
module Bess
|
|
||||||
# Your code goes here...
|
|
||||||
end
|
|
||||||
|
|
8
gems/bess/lib/houdini.rb
Normal file
8
gems/bess/lib/houdini.rb
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||||
|
require "houdini/railtie"
|
||||||
|
|
||||||
|
module Houdini
|
||||||
|
# Your code goes here...
|
||||||
|
end
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||||
module Bess
|
module Houdini
|
||||||
class Railtie < ::Rails::Railtie
|
class Railtie < ::Rails::Railtie
|
||||||
end
|
end
|
||||||
end
|
end
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||||
# desc "Explaining what the task does"
|
# desc "Explaining what the task does"
|
||||||
# task :bess do
|
# task :houdini do
|
||||||
# # Task goes here
|
# # Task goes here
|
||||||
# end
|
# end
|
Loading…
Reference in a new issue