Sha256: bcde73a723c861a1101881e9e4795fd95639ec316280c63cb4e13e4d939c9927

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'tools/rakehelp'
require 'fileutils'
include FileUtils

setup_tests
setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"]

setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']

desc "Does a full compile, test run"
task :default => [:test, :package]

version="0.1.1"
name="railsmachine"

setup_gem(name, version) do |spec|
  spec.summary = "The Rails Machine task library"
  spec.description = spec.summary
  spec.author="Bradley Taylor"
  spec.add_dependency('capistrano', '>= 1.1.0')
  spec.add_dependency('mongrel_cluster', '>= 0.2.0')
  spec.has_rdoc = false
  spec.files += Dir.glob("bin/*")
  spec.files += Dir.glob("resources/**/*")
  spec.default_executable = "railsmachine"
  spec.executables = ["railsmachine"]
end


task :install => [:test, :package] do
  sh %{sudo gem install pkg/#{name}-#{version}.gem}
end

task :uninstall => [:clean] do
  sh %{sudo gem uninstall #{name}}
end

task :gem_source do
  mkdir_p "pkg/gems"

  FileList["**/*.gem"].each { |gem| mv gem, "pkg/gems" }
  FileList["pkg/*.tgz"].each {|tgz| rm tgz }
  rm_rf "pkg/#{name}-#{version}"

  sh %{ generate_yaml_index.rb -d pkg }
  sh %{ scp -r pkg/* #{ENV['SSH_USER']}@rubyforge.org:/var/www/gforge-projects/railsmachine/releases/ }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
railsmachine-0.1.1 Rakefile