Sha256: f0827bc83cb336cf63ef23df9f612ab68d24c3cf7a3b30644f56856bed21dcbc

Contents?: true

Size: 595 Bytes

Versions: 32

Compression:

Stored size: 595 Bytes

Contents

desc 'Set up a dev instance of the Pact Broker'
task 'pact_broker:dev:setup' do
  puts "Copying example directory"
  FileUtils.cp_r 'example', 'dev'
  gemfile_contents = File.read('dev/Gemfile')


  puts "Changing source of pact_broker gem from rubygems.org to local file system"
  new_gemfile_contents = gemfile_contents.gsub(/^.*gem.*pact_broker.*$/, "gem 'pact_broker', path: '../'")
  File.open('dev/Gemfile', "w") { |file| file << new_gemfile_contents }

  Dir.chdir("dev") do
    Bundler.with_clean_env do
      puts "Executing bundle update"
      puts `bundle update`
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
pact_broker-2.79.1 tasks/development.rake
pact_broker-2.79.0 tasks/development.rake
pact_broker-2.78.1 tasks/development.rake
pact_broker-2.78.0 tasks/development.rake
pact_broker-2.77.0 tasks/development.rake
pact_broker-2.76.2 tasks/development.rake
pact_broker-2.76.1 tasks/development.rake
pact_broker-2.76.0 tasks/development.rake
pact_broker-2.75.0 tasks/development.rake
pact_broker-2.74.1 tasks/development.rake
pact_broker-2.74.0 tasks/development.rake
pact_broker-2.73.0 tasks/development.rake
pact_broker-2.72.0 tasks/development.rake
pact_broker-2.71.0 tasks/development.rake
pact_broker-2.70.0 tasks/development.rake
pact_broker-2.69.0 tasks/development.rake
pact_broker-2.68.1 tasks/development.rake
pact_broker-2.68.0 tasks/development.rake
pact_broker-2.67.0 tasks/development.rake
pact_broker-2.66.0 tasks/development.rake