Class: Haml::Generators::TMinusGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_layout_fileObject



15
16
17
# File 'lib/generators/haml/t_minus_generator.rb', line 15

def copy_layout_file
  copy_file 'prelaunch.html.haml', 'app/views/layouts/prelaunch.html.haml'
end

#copy_view_fileObject



11
12
13
# File 'lib/generators/haml/t_minus_generator.rb', line 11

def copy_view_file
  copy_file 'new.html.haml', 'app/views/prelaunch/new.html.haml'
end

#create_prelaunch_directoryObject



7
8
9
# File 'lib/generators/haml/t_minus_generator.rb', line 7

def create_prelaunch_directory
  empty_directory 'app/views/prelaunch'
end