Sha256: 7930810433a752879d6c38bf48461120c0a9560b2225a031d5db2e4891604872
Contents?: true
Size: 564 Bytes
Versions: 3
Compression:
Stored size: 564 Bytes
Contents
require 'rails/generators' module Breezeblocks class ListGenerator < Rails::Generators::Base desc 'List breezeblocks' def list puts 'Available Breezeblocks' puts '=================' stylesheets.each do |file_name| puts '- ' + file_name.gsub(/_|\.sass/, '') end end private def stylesheets breezeblocks_dir = File.expand_path('../../../source/stylesheets/breezeblocks', __FILE__) stylesheets = Dir.entries(breezeblocks_dir) stylesheets.reject {|f| f == '.' || f == '..' } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
breezeblocks-0.0.4 | lib/breezeblocks/list_generator.rb |
breezeblocks-0.0.2 | lib/breezeblocks/list_generator.rb |
breezeblocks-0.0.1 | lib/breezeblocks/list_generator.rb |