Module: Dunlop

Defined in:
lib/dunlop.rb,
lib/dunlop/engine.rb,
lib/dunlop/models.rb,
lib/dunlop/version.rb,
app/helpers/dunlop/application_helper.rb,
app/controllers/dunlop/application_controller.rb

Defined Under Namespace

Modules: Ability, ActiveClassHelper, ApplicationHelper, AttributeChangesTracking, CollectionLookup, CsvBuilder, FileGrep, FileSed, FileZip, Generators, Install, InterpretedTextHelper, LastAttributeChangeHelper, Loggable, NestedLogger, OverdueHandling, ProcessIdentification, Reports, SourceFileModel, TableHelper, TargetFileModel, UserModel, WorkflowInstanceBatchModel, WorkflowInstanceModel, WorkflowStepModel, WorkflowStepsInBatchFinished Classes: ApplicationController, DashboardController, Engine, ExecutionBatch, ExecutionBatchGenerator, ExecutionBatchPid, ExecutionBatchesController, InstallGenerator, LastAttributeChange, LogEntry, RenameSourceFileGenerator, ScenarioGenerator, SourceFileGenerator, SourceFileUploader, SourceFilesController, StateBadge, TargetFileDownload, TargetFileGenerator, TargetFileUploader, TargetFilesController, UserSettings, UsersController, Workflow, WorkflowInstancesController, WorkflowStepGenerator

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.has_source_files?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/dunlop.rb', line 13

def self.has_source_files?
  'SourceFile'.safe_constantize
end

.has_target_files?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/dunlop.rb', line 17

def self.has_target_files?
  'TargetFile'.safe_constantize
end

.has_workflow?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/dunlop.rb', line 9

def self.has_workflow?
  File.exist?(Rails.root.join("app/models/workflow_instance/data_setup.rb"))
end

.table_name_prefixObject



5
6
7
# File 'lib/dunlop.rb', line 5

def self.table_name_prefix
  'dunlop_'
end