Sha256: 6db0ab1a007e909e722ee972a828ca10e3ccfe33ff5f10c81d8771fb2586eacc

Contents?: true

Size: 392 Bytes

Versions: 22

Compression:

Stored size: 392 Bytes

Contents

require 'erb'
require 'fileutils'


module Bourdain
  module Generators
    class Generator < Bourdain::Resource
    protected
      def valid? name
        name =~ /[_a-z]+/
      end

      def normalized name
        File::basename(name, '.rb')
      end
    end
  end
end

require_relative 'generators/attribute'
require_relative 'generators/cookbook'
require_relative 'generators/recipe'

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bourdain-1.6.3 lib/bourdain/resources/generators.rb
bourdain-1.6.2 lib/bourdain/resources/generators.rb
bourdain-1.6.1 lib/bourdain/resources/generators.rb
bourdain-1.6.0 lib/bourdain/resources/generators.rb
bourdain-1.5.1 lib/bourdain/resources/generators.rb
bourdain-1.5.0 lib/bourdain/resources/generators.rb
bourdain-1.4.1 lib/bourdain/resources/generators.rb
bourdain-1.4.0 lib/bourdain/resources/generators.rb
bourdain-1.3.3 lib/bourdain/resources/generators.rb
bourdain-1.3.2 lib/bourdain/resources/generators.rb
bourdain-1.3.1 lib/bourdain/resources/generators.rb
bourdain-1.3.0 lib/bourdain/resources/generators.rb
bourdain-1.2.22 lib/bourdain/resources/generators.rb
bourdain-1.2.21 lib/bourdain/resources/generators.rb
bourdain-1.2.20 lib/bourdain/resources/generators.rb
bourdain-1.2.19 lib/bourdain/resources/generators.rb
bourdain-1.2.18 lib/bourdain/resources/generators.rb
bourdain-1.2.17 lib/bourdain/resources/generators.rb
bourdain-1.2.16 lib/bourdain/resources/generators.rb
bourdain-1.2.15 lib/bourdain/resources/generators.rb