Class: Assets::NineSixtyGenerator

Inherits:
Generate::Generators::Base show all
Defined in:
lib/generators/assets/nine_sixty/nine_sixty_generator.rb

Instance Method Summary collapse

Methods inherited from Generate::Generators::Base

source_root

Instance Method Details

#copy_layoutObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/assets/nine_sixty/nine_sixty_generator.rb', line 3

def copy_layout
	files = %w( reset 960 text )
	cmd = 'curl -O http://github.com/nathansmith/960-Grid-System/raw/master/code/css/%s.css'
	
	inside File.join('public', 'stylesheets') do
		files.each do |f| 
			run(cmd % f)
		end
	end

	copy_file 'expansion.rb', File.join('config', 'initializers', 'nine_sixty.rb')
end