avo-setup 0.0.13 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.15"
3
3
  end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate avosetup Thing
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,19 @@
1
+ module Avo
2
+ module Generators
3
+ class LayoutGenerator < Rails::Generators::Base
4
+ argument :layout_name, :type => :string, :default => "application"
5
+ class_option :stylesheet, :type => :boolean, :default => true, :desc => "Include stylesheet file."
6
+
7
+ def generate_layout
8
+ copy_file "stylesheet.css", "public/stylesheets/#{file_name}.css" if options.stylesheet?
9
+ template "layout.html.erb", "app/views/layouts/#{file_name}.html.erb"
10
+ end
11
+
12
+ private
13
+
14
+ def file_name
15
+ layout_name.underscore
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1 @@
1
+ hopalkee
@@ -0,0 +1 @@
1
+ test
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 13
9
- version: 0.0.13
8
+ - 15
9
+ version: 0.0.15
10
10
  platform: ruby
11
11
  authors:
12
12
  - Avocado
@@ -36,6 +36,10 @@ files:
36
36
  - lib/avo-setup.rb
37
37
  - lib/avo-setup/.DS_Store
38
38
  - lib/avo-setup/version.rb
39
+ - lib/generators/avo/USAGE
40
+ - lib/generators/avo/layout_generator.rb
41
+ - lib/generators/avo/templates/layout.html.erb
42
+ - lib/generators/avo/templates/stylesheet.css
39
43
  has_rdoc: true
40
44
  homepage: http://www.avocado.nl
41
45
  licenses: []