Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make get_process_execute_command and get_process_bat_path public

  • Loading branch information...
commit eb4c3dbd42d23a917907bacb6f5ce5b598d1d6dd 1 parent 915375b
Brandon Tilley authored
Showing with 15 additions and 15 deletions.
  1. +15 −15 lib/dataloaderb/process_runner.rb
View
30 lib/dataloaderb/process_runner.rb
@@ -37,6 +37,21 @@ def execute_process(process_name)
`#{get_process_execute_command @bin_path, @conf_path, process_name}`
end
+ # Given the path to the Apex Data Loader bin directory, the
+ # path to the folder with the process-conf.xml file, and the
+ # name of a process defined in the XML to run, return the
+ # command that the operating system needs to run to execute
+ # the process.
+ def get_process_execute_command(bin_path, conf_path, process_name)
+ "#{get_process_bat_path(bin_path)} #{conf_path} #{process_name}"
+ end
+
+ # Given the path to the Apex Data Loader bin directory, return
+ # the expanded path of the process.bat file to be executed.
+ def get_process_bat_path(bin_path)
+ File.expand_path "#{bin_path}/process.bat"
+ end
+
protected
def create_configuration(xml)
@@ -51,20 +66,5 @@ def create_configuration(xml)
def remove_configuration
FileUtils.remove_entry_secure(@conf_path) unless @conf_path.nil?
end
-
- # Given the path to the Apex Data Loader bin directory, the
- # path to the folder with the process-conf.xml file, and the
- # name of a process defined in the XML to run, return the
- # command that the operating system needs to run to execute
- # the process.
- def get_process_execute_command(bin_path, conf_path, process_name)
- "#{get_process_bat_path(bin_path)} #{conf_path} #{process_name}"
- end
-
- # Given the path to the Apex Data Loader bin directory, return
- # the expanded path of the process.bat file to be executed.
- def get_process_bat_path(bin_path)
- File.expand_path "#{bin_path}/process.bat"
- end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.