forked from lackac/app_lego
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompass.rb
24 lines (19 loc) · 794 Bytes
/
compass.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
unless File.exists?('vendor/plugins/haml')
log "info", "Compass requires Haml module; will install it now"
templ = "#{@base_path}/haml.rb"
log "applying", templ
load_template(templ)
log "applied", templ
end
gem 'chriseppstein-compass', :lib => 'compass', :version => '>= 0.3.4'
framework = (ENV['COMPASS_FRAMEWORK'] || ask('which framework you want to use? [blueprint | yui] (defaults to blueprint)'))
framework = "blueprint" if framework.nil? || framework.empty?
run "echo -e 'y\ny\n' | compass --rails -f #{framework} ."
compiled_dir = File.join %w(public stylesheets compiled)
if File.exists? compiled_dir
File.open(".gitignore", "a") do |f|
f << compiled_dir << "\n"
end
end
git :add => "."
git :commit => "-a -m 'Added compass for css using #{framework} framework'"