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