Sha256: 15350f9dca64f1d3807e574bebe7f0dcf9b0fed240931841f3d816b52388b045

Contents?: true

Size: 614 Bytes

Versions: 8

Compression:

Stored size: 614 Bytes

Contents

require 'apps/<%= app_path %>/controllers/<%= app_name %>_controller.rb'<% tab = (modules.length > 1) ? "    " : "" %><%= "\n" if (modules.length > 1) %>
<%= modules[0..-2].inject(""){ |s, mod| s+= "; " if (s.length > 0); s+="module #{mod}"}+"\n" if (modules.length > 1)%>
<%=tab%>module <%=modules[-1]%>
<%=tab%>    @description = ""
<%=tab%>    @version = 0.1
<%=tab%>    @path = File.dirname(__FILE__)
<%=tab%>    @controller = :<%= module_name %>Controller
<%=tab%>    include Spider::App
<%=tab%>end
<%= "\n"+modules[0..-2].inject(""){ |s, mod| s+= "; " if (s.length > 0); s+="end" if (modules.length > 1)} %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spiderfw-0.5.7 blueprints/app/_init.rb
spiderfw-0.5.6 blueprints/app/_init.rb
spiderfw-0.5.5 blueprints/app/_init.rb
spiderfw-0.5.4 blueprints/app/_init.rb
spiderfw-0.5.3 blueprints/app/_init.rb
spiderfw-0.5.2 blueprints/app/_init.rb
spiderfw-0.5.1 blueprints/app/_init.rb
spiderfw-0.5 blueprints/app/_init.rb