features/support/env.rb in salesforce-deploy-tool-1.1.0 vs features/support/env.rb in salesforce-deploy-tool-1.2.0

- old
+ new

@@ -15,9 +15,14 @@ config[:environment_variables].keys.each do |key| ENV[key.to_s.upcase] = config[:environment_variables][key] end end +# Remove current configurations only once +Before '@config' do + FileUtils.rm_rf File.join(File.expand_path('~/'),'.sf') +end + # Before push and pull clone the repository Before '@push,@pull' do uri = ENV['SFDT_GIT_REPO'] name = File.join 'tmp', 'aruba', ENV['SFDT_GIT_DIR'] Git.clone(uri, name)