Class: Jasmine::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/jasmine/install/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



5
6
7
# File 'lib/generators/jasmine/install/install_generator.rb', line 5

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

Instance Method Details

#app_nameObject



13
14
15
# File 'lib/generators/jasmine/install/install_generator.rb', line 13

def app_name
  Rails.application.class.name
end

#copy_spec_filesObject



9
10
11
# File 'lib/generators/jasmine/install/install_generator.rb', line 9

def copy_spec_files
  directory 'spec'
end