Class: Voodoo::DataMover
- Inherits:
-
PeopleTools
- Object
- PeopleTools
- Voodoo::DataMover
- Defined in:
- lib/voodoo/peopletools/datamover.rb
Instance Attribute Summary
Attributes inherited from PeopleTools
#command_line_options, #executable
Instance Method Summary collapse
-
#initialize ⇒ DataMover
constructor
A new instance of DataMover.
- #run(migration, source, script_name) ⇒ Object
Methods inherited from PeopleTools
Constructor Details
#initialize ⇒ DataMover
Returns a new instance of DataMover.
6 7 8 9 |
# File 'lib/voodoo/peopletools/datamover.rb', line 6 def initialize super @executable = File.join(@tools_bin, %w{psdmtx.exe}) end |
Instance Method Details
#run(migration, source, script_name) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/voodoo/peopletools/datamover.rb', line 11 def run(migration, source, script_name) append(:db_type => source.db_type) append(:env_name => source.name) append(:env_username => source.app_username) append(:env_password => source.app_password) append(:output_folder => File.join(migration.sql_folder, script_name).gsub!(File::SEPARATOR, File::ALT_SEPARATOR)) update_dms_settings(migration.sql_folder, migration.log_folder) call_executable end |