Sha256: 7366f09f020241c3896755c611acd51ebb1a024e01183321e0a686737d2a07c3

Contents?: true

Size: 1.4 KB

Versions: 6

Compression:

Stored size: 1.4 KB

Contents

#!/usr/bin/env rake
# encoding: utf-8

require 'rubygems'
require 'bundler/setup'

require 'rake'
require 'vcr'
require 'rspec'
require 'rspec/core/rake_task'
require 'rubygems/package_task'

$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)

require 'locomotive/builder'
require 'locomotive/builder/version'

gemspec = eval(File.read('locomotivecms_builder.gemspec'))
Gem::PackageTask.new(gemspec) do |pkg|
  pkg.gem_spec = gemspec
end

desc 'build the gem and release it to rubygems.org'
task :release => :gem do
  sh "gem push pkg/locomotivecms_builder-#{gemspec.version}.gem"
end

namespace :development do
  task :bootstrap do
    VCR.configure do |c|
      c.cassette_library_dir = File.expand_path(File.dirname(__FILE__) + '/spec/integration/cassettes')
      c.hook_into :webmock # or :fakeweb
      c.allow_http_connections_when_no_cassette = true
      # c.ignore_request do |request|
      #   URI(request.uri).path =~ /translations/
      # end
    end

    FileUtils.rm_rf(File.join(File.dirname(__FILE__), 'site'))
    VCR.use_cassette('pull') do
      exit unless Locomotive::Builder.clone("site", {"host" => "http://locomotive.engine.dev:3000"}, "email" => "admin@locomotivecms.com", "password" => "locomotive")
    end

    Locomotive::Builder.push("site", {"host" => "http://locomotive.engine.dev:3000"}, "email" => "admin@locomotivecms.com", "password" => "locomotive", "force" => true, "data" => true)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotivecms_builder-1.0.0.alpha8 Rakefile
locomotivecms_builder-1.0.0.alpha7 Rakefile
locomotivecms_builder-1.0.0.alpha6 Rakefile
locomotivecms_builder-1.0.0.alpha5 Rakefile
locomotivecms_builder-1.0.0.alpha4 Rakefile
locomotivecms_builder-1.0.0.alpha3 Rakefile