class Neph::Job
- Neph::Job
- Reference
- Object
Included Modules
Defined in:
neph/job/job.crConstant Summary
-
DONE =
2
-
ERROR =
3
-
RUNNING =
1
-
SKIP =
4
-
TICK_CHARS =
"⠁⠁⠉⠙⠚⠒⠂⠂⠒⠲⠴⠤⠄⠄⠤⠠⠠⠤⠦⠖⠒⠐⠐⠒⠓⠋⠉⠈⠈ "
-
WAITING =
0
Constructors
Instance Method Summary
- #add_sources(source_files : Array(String))
- #add_sub_job(job : Job, env : String | Nil)
- #after : Array(String)
- #before : Array(String)
- #clean_tmp
- #commands : Array(String)
- #create_dir
- #current_command : String
- #depends_on : Array(Job)
- #dir : String
- #dir=(dir : String)
- #done? : Bool
- #done_command : Int32
- #elapsed_time : String
- #env : String | Nil
- #env=(env : String | Nil)
- #exec(channel : Channel(Nil) | Nil = nil)
- #exec_commands(commands : Array(String), stdout, stderr)
- #exec_self
- #exec_sub_job_parallel
- #exec_sub_job_sequential
- #file_tail(path : String) : String
- #get_progress : String
- #has_parent_job?(sub_job_name : String) : Bool
- #hide : Bool
- #hide=(hide : Bool)
- #ignore_error : Bool
- #ignore_error=(ignore_error : Bool)
- #log_dir : String
- #name : String
- #num_of_done_jobs
- #num_of_jobs
- #prepare_env
- #progress : Int32
- #progress_max : Int32
- #progress_msg : String
- #progress_percent : Int32
- #shown_command : String
- #src : Array(String)
- #src=(src : Array(String))
- #status_changed? : Bool
- #status_code : Int32
- #status_msg(indent_spaces = "")
- #status_msg_ci
- #time_msg : String
- #tmp_dir : String
- #tmp_file(source : String) : String
-
#to_s(indent = 0) : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #to_s_ci : String
-
#up_to_date? : Bool
TODO should be fixed
- #ws_dir : String
Instance methods inherited from module Neph
format_time(time)
format_time,
log(msg : String, force : Bool = false)
log,
log_err
log_err,
log_ln(msg : String, force : Bool = false)
log_ln,
log_out
log_out,
neph_dir
neph_dir,
ready_dir
ready_dir
Instance methods inherited from module Neph::Message
error(msg : String)
error
Instance methods inherited from module Neph::Parser
add_sub_job(config : YHash, job : Job, sub_job_name : String, env : String | Nil)add_sub_job(config : YHash, job : Job, sub_job : String)
add_sub_job(config : YHash, job : Job, sub_job : YHash) add_sub_job, create_job(config : Hash(YAML::Any, YAML::Any), job_name : String, parent_job : Job | Nil = nil) : Job create_job, parse_yaml(job_name : String, path : String) : Job
parse_yaml(path : String) : Hash(YAML::Any, YAML::Any) parse_yaml, source_files(path : String) : Array(String) source_files
Constructor Detail
def self.new(name : String, commands : Array(String), before : Array(String), after : Array(String), parent_job : Job | Nil)
#
Instance Method Detail
def to_s(indent = 0) : String
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.