Sha256: fa7f2de90c4996aece63ec3ab2a3a97201bd82659e195d8b71c4fe355dac753d

Contents?: true

Size: 395 Bytes

Versions: 5

Compression:

Stored size: 395 Bytes

Contents

When /^I delete the repository directory/ do
  FileUtils.rm_rf File.join 'tmp', 'aruba', ENV['SFDT_GIT_DIR']
end

When /^I watch "(.+)" for changes and copy to "(.+)"$/ do |file,dest|
  file = File.join(Dir.pwd,'tmp','aruba',file)
  dest = File.join(Dir.pwd,'tmp','aruba',dest)
  fork do
    FileWatcher.new(file).watch do |filename|
      FileUtils.cp file, dest
      exit 0
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
salesforce-deploy-tool-3.3.4 features/support/hooks.rb
salesforce-deploy-tool-3.3.3 features/support/hooks.rb
salesforce-deploy-tool-3.3.2 features/support/hooks.rb
salesforce-deploy-tool-3.3.1 features/support/hooks.rb
salesforce-deploy-tool-3.2.0 features/support/hooks.rb