Sha256: c6eefed8556e38925280dec8a97a7abf02419bb4a923e5974fde0e826d84b7d7
Contents?: true
Size: 654 Bytes
Versions: 5
Compression:
Stored size: 654 Bytes
Contents
class Simulation < ApplicationRecord has_many :simulation_jobs, dependent: :destroy has_machete_workflow_of :simulation_jobs # Name that defines the template/target dirs def staging_template_name "simulation" end # Define tasks to do after staging template directory typically copy over # uploaded files here # def after_stage(staged_dir) # # CODE HERE # end # Build an array of Machete jobs that are then submitted to the batch server def build_jobs(staged_dir, job_list = []) job_list << OSC::Machete::Job.new(script: staged_dir.join("main.sh")) end # Make copy of workflow def copy self.dup end end
Version data entries
5 entries across 5 versions & 1 rubygems