--- server/Rakefile | 44 +++----------------------------------------- 1 files changed, 3 insertions(+), 41 deletions(-)
diff --git a/server/Rakefile b/server/Rakefile index 72b7af6..06c649d 100644 --- a/server/Rakefile +++ b/server/Rakefile @@ -54,45 +54,7 @@ Rake::GemPackageTask.new(@spec) do |pkg| pkg.need_tar = true end
-desc "Install API" -task :install, [:install_dir, :bin_dir] do |t, args| - - require 'fileutils' - require 'pp' - - files = FileList[ - Dir["config/**/**"], - Dir["features/**/**"], - Dir["lib/**/**"], - Dir["public/**/**"], - Dir["views/**/**"], - "config.ru", - "COPYING", - "README", - "*.rb" - ] - - INSTALL_DIR=args.install_dir || "/usr/local/share/deltacloud-core" - BIN_DIR=args.bin_dir || "/usr/local/bin" - - exit(1) unless FileUtils.mkdir_p(INSTALL_DIR) - exit(1) unless FileUtils.mkdir_p(BIN_DIR) - - files.each do |f| - install_path = "#{INSTALL_DIR}/#{File.dirname(f)}" - unless File.directory?(install_path) - FileUtils.mkdir_p(install_path, :mode => 0755, :verbose => true) - end - next if File.directory?(f) - FileUtils.install(f, "#{INSTALL_DIR}/#{File.dirname(f)}", :verbose => true) - end - - FileUtils.install('bin/deltacloudd', BIN_DIR, :verbose => true, :mode => 0755) -end - -desc "Uninstall API" -task :uninstall do - require 'fileutils' - INSTALL_DIR="/usr/share/deltacloud-core" - FileUtils.rm_rf(INSTALL_DIR) +desc "Generate CSS" +task :compass do + puts exec('compass -q') end