Sha256: 6cdf1a64dc378f8d747b8be05173af2c8ae51bd8860b63ceb106b387ee29af58

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 Bytes

Contents

module Tableficate
  class ThemeGenerator < Rails::Generators::NamedBase
    desc('Create a Tableficate theme.')

    VIEW_PATH = 'app/views/tableficate'

    source_root File.expand_path("../../../../../#{VIEW_PATH}", __FILE__)

    def create_theme
      empty_directory(VIEW_PATH)

      directory('', "#{VIEW_PATH}/#{file_name}")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tableficate-0.2.1 lib/generators/tableficate/theme/theme_generator.rb
tableficate-0.2.0 lib/generators/tableficate/theme/theme_generator.rb
tableficate-0.1.3 lib/generators/tableficate/theme/theme_generator.rb
tableficate-0.1.2 lib/generators/tableficate/theme/theme_generator.rb
tableficate-0.1.1 lib/generators/tableficate/theme/theme_generator.rb
tableficate-0.0.1 lib/generators/tableficate/theme/theme_generator.rb