This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The Importer pulls Excel based customer data into the local database. | |
class ProductImporter | |
# Exception we raise when there is a mismatch between the excel columns | |
# and our database defined ones. | |
class ColumnMismatch < StandardError | |
def initialize(mismatched_columns) | |
@mismatched_columns = mismatched_columns | |
super(message) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gradle script for detached apps. | |
import org.apache.tools.ant.taskdefs.condition.Os | |
void runBefore(String dependentTaskName, Task task) { | |
Task dependentTask = tasks.findByPath(dependentTaskName); | |
if (dependentTask != null) { | |
dependentTask.dependsOn task | |
} | |
} |
OlderNewer