Sha256: 2adeda8bcd6d3c9693939cea86bf00c14b69ece30093e327dd4395ae2a82e05e

Contents?: true

Size: 219 Bytes

Versions: 8

Compression:

Stored size: 219 Bytes

Contents

require 'rails/generators'
module DynamicMenu
  class InstallGenerator < Rails::Generators::Base
    def generate_install
      dir = "app/menus"
      Dir.mkdir(dir) unless File.exists?(dir)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dynamic_menu-3.0.2 lib/generators/dynamic_menu/install_generator.rb
dynamic_menu-3.0.1 lib/generators/dynamic_menu/install_generator.rb
dynamic_menu-3.0.0 lib/generators/dynamic_menu/install_generator.rb
dynamic_menu-3.0.0.rc3 lib/generators/dynamic_menu/install_generator.rb
dynamic_menu-3.0.0.rc2 lib/generators/dynamic_menu/install_generator.rb
dynamic_menu-3.0.0.rc1 lib/generators/dynamic_menu/install_generator.rb
dynamic_menu-3.0.0.pre2 lib/generators/dynamic_menu/install_generator.rb
dynamic_menu-3.0.0.pre1 lib/generators/dynamic_menu/install_generator.rb