Sha256: 1656870cbaf5b6caf4125dc98fbc350212bdcb92908a7f314f8da6a26c0a5582

Contents?: true

Size: 938 Bytes

Versions: 3

Compression:

Stored size: 938 Bytes

Contents

begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

APP_RAKEFILE = File.expand_path("../test/app/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'

Bundler::GemHelper.install_tasks

require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = false
end

namespace :shoppe do
  desc 'Publish the release notes'
  task :changelog do
    system "scp CHANGELOG.md rubyapps@tryshoppe.com:/opt/rubyapps/shoppe-website/shared/CHANGELOG.md"
  end
  
  desc "Publish RDoc documentation from doc to api.tryshoppe.com"
  task :docs do
    if File.exist?("doc")
      system "yard"
      system "ssh root@tryshoppe.com rm -Rf /var/www/shoppe-api"
      system "scp -r doc root@tryshoppe.com:/var/www/shoppe-api"
    else
      puts "No doc/ folder found to publish."
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoppe-0.0.19 Rakefile
shoppe-0.0.18 Rakefile
shoppe-0.0.17 Rakefile