Sha256: 1e2c9b0570ae6c1c9541b1f5212f5611342b85c95e3c493361781d828c5a2606
Contents?: true
Size: 654 Bytes
Versions: 4
Compression:
Stored size: 654 Bytes
Contents
class Simulation < ActiveRecord::Base 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
4 entries across 4 versions & 1 rubygems