Class: Yeqs::Generators::JqueryGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/yeqs/jquery/jquery_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



4
5
6
# File 'lib/generators/yeqs/jquery/jquery_generator.rb', line 4

def self.source_root
  @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), '/../../../..'))
end

Instance Method Details

#installObject



8
9
10
11
12
13
14
# File 'lib/generators/yeqs/jquery/jquery_generator.rb', line 8

def install
  if file_name.eql? 'core'
    directory "public/components/jquery", "public/components/jquery"
  else
    directory "public/components/jquery#{file_name}", "public/components/jquery#{file_name}"
  end
end