pancake 0.1.15 → 0.1.16

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.
@@ -2,16 +2,20 @@ module Pancake
2
2
  module Generators
3
3
  class Short < Base
4
4
  argument :stack_name, :banner => "Name of stack"
5
-
5
+
6
6
  desc "Generates a short stack"
7
7
  def stack
8
8
  say "Creating The Short Stack For #{stack_name}"
9
9
  directory "short/%stack_name%", stack_name
10
10
  template File.join(self.class.source_root, "common/dotgitignore"), "#{stack_name}/.gitignore"
11
11
  template File.join(self.class.source_root, "common/dothtaccess"), "#{stack_name}/lib/#{stack_name}/public/.htaccess"
12
+
13
+ inside("#{stack_name}/lib/#{stack_name}/script") do
14
+ run 'chmod +x console'
15
+ end
12
16
  end
13
-
14
-
17
+
18
+
15
19
  end
16
20
  end
17
21
  end
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
+ require 'pancake'
3
4
 
4
5
  begin
5
6
  require 'jeweler'
@@ -19,6 +20,8 @@ rescue LoadError
19
20
  end
20
21
 
21
22
  require File.join(File.dirname(__FILE__), "lib", "<%= stack_name %>")
23
+ Pancake.root = Pancake.get_root(__FILE__, "lib", "<%= stack_name %>")
24
+ THIS_STACK = <%= stack_name.camel_case %>
22
25
  <%= stack_name.camel_case %>.load_rake_tasks!
23
26
 
24
27
  require 'spec/rake/spectask'
@@ -8,8 +8,8 @@ require 'pancake'
8
8
 
9
9
  Pancake.root = Pancake.get_root(__FILE__, "..")
10
10
 
11
- # Load the <%= stack_class.camel_case %> stack
12
- require File.join(Pancake.root, "..", "<%= stack_class %>")
13
- Pancake::Console.new(<%= stack_class.camel_case %>)
11
+ # Load the <%= stack_name.camel_case %> stack
12
+ require File.join(Pancake.root, "..", "<%= stack_name %>")
13
+ Pancake::Console.new(<%= stack_name.camel_case %>)
14
14
 
15
15
 
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.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
@@ -136,7 +136,7 @@ files:
136
136
  - lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/models/.empty_directory
137
137
  - lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/mounts/.empty_directory
138
138
  - lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/public/.empty_directory
139
- - lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/script/console
139
+ - lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/script/console.tt
140
140
  - lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/tasks/%stack_name%.rake.tt
141
141
  - lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/tmp/.empty_directory
142
142
  - lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/views/root.html.haml