Created
March 23, 2009 01:34
-
-
Save shayfrendt/83374 to your computer and use it in GitHub Desktop.
A rake task to install the blueprint css framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fileutils' | |
namespace :blueprint do | |
desc "Install the Blueprint CSS framework as a plugin" | |
task :install do | |
puts "Installing the Blueprint CSS framework files." | |
sh %{ruby script/plugin install git://github.com/joshuaclayton/blueprint-css.git} | |
end | |
desc "Reinstall the Blueprint CSS framework as a plugin" | |
task :reinstall do | |
puts "Reinstalling the Blueprint CSS framework files." | |
sh %{ruby script/plugin install git://github.com/joshuaclayton/blueprint-css.git --force} | |
end | |
desc "Create a settings.yml file." | |
task :setup do | |
puts "Creating a Blueprint settings.yml file." | |
Dir.chdir "#{RAILS_ROOT}/vendor/plugins/blueprint-css/lib/" | |
sh %{cp settings.example.yml settings.yml} | |
end | |
desc "Run the compress.rb script" | |
task :compress do | |
puts "Running the Blueprint compress.rb script to generate the css files." | |
Dir.chdir "#{RAILS_ROOT}/vendor/plugins/blueprint-css/lib/" | |
sh %{ruby compress.rb -p project1} | |
end | |
desc "Uninstall the Blueprint CSS framework as a plugin" | |
task :remove do | |
puts "Removing the Blueprint CSS framework as a plugin" | |
Dir.chdir "#{RAILS_ROOT}/vendor/plugins/" | |
sh %{sudo rm -r blueprint-css} | |
end | |
desc "Install the full Blueprint stack" | |
task :full_install => [:install, :setup] do | |
puts "Installing the full Blueprint CSS framework stack." | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment