pancake 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/pancake/stack/bootloader.rb +7 -5
  2. metadata +2 -2
@@ -15,23 +15,25 @@ end # Pancake
15
15
  # :level => :init bootloaders only have the stack class available
16
16
  # They do not have :stack available
17
17
  # These are not run directly, but are run from inherited stacks
18
- Pancake::Stack::BootLoader.add(:load_mounted_inits, :level => :init) do
18
+
19
+ Pancake::Stack::BootLoader.add(:load_configuration, :level => :init) do
19
20
  def run!
20
- # Mount any stacks this stack may have in it.
21
21
  stack_class.roots.each do |root|
22
- Dir["#{root}/mounts/*/pancake_init.rb"].each{|f| load f if File.exists?(f)}
22
+ stack_class.paths_for(:config).each{|f| require f.join}
23
23
  end
24
24
  end
25
25
  end
26
26
 
27
- Pancake::Stack::BootLoader.add(:load_configuration, :level => :init) do
27
+ Pancake::Stack::BootLoader.add(:load_mounted_inits, :level => :init) do
28
28
  def run!
29
+ # Mount any stacks this stack may have in it.
29
30
  stack_class.roots.each do |root|
30
- stack_class.paths_for(:config).each{|f| require f.join}
31
+ Dir["#{root}/mounts/*/pancake_init.rb"].each{|f| load f if File.exists?(f)}
31
32
  end
32
33
  end
33
34
  end
34
35
 
36
+
35
37
  Pancake::Stack::BootLoader.add(:load_application, :level => :init) do
36
38
  def run!
37
39
  stack_class.roots.each do |root|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pancake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
@@ -9,7 +9,7 @@ autorequire: pancake
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-15 00:00:00 +11:00
12
+ date: 2009-11-18 00:00:00 +11:00
13
13
  default_executable: pancake-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency