Class: AdminLte2PluginsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/admin_lte2_plugins/admin_lte2_plugins_generator.rb

Instance Method Summary collapse

Instance Method Details

#mainObject


7
8
9
10
11
12
13
14
15
# File 'lib/generators/admin_lte2_plugins/admin_lte2_plugins_generator.rb', line 7

def main
  begin
    send("install_#{plugin_name}")
  rescue NoMethodError => e
    puts "Unknown plugin : '#{plugin_name}'"
  rescue => e
    puts e
  end
end