class Rails::Generators::PluginGenerator

def create_lib_files

def create_lib_files
  directory 'lib', plugin_dir('lib'), :recursive => false
end

def create_root_files

def create_root_files
  directory '.', plugin_dir, :recursive => false
end

def create_tasks_files

def create_tasks_files
  return unless options[:tasks]
  directory 'lib/tasks', plugin_dir('lib/tasks')
end

def plugin_dir(join=nil)

def plugin_dir(join=nil)
  if join
    File.join(plugin_dir, join)
  else
    "vendor/plugins/#{file_name}"
  end
end