Sha256: 3c111cd8ef374cebb09dd89b68e3f8e70ae7f90c66a5b10d09ec8f9293568fd0

Contents?: true

Size: 514 Bytes

Versions: 6

Compression:

Stored size: 514 Bytes

Contents

require 'thor'
require 'rjobs/jobs_file'
require 'rjobs/job_input_file'
require 'rjobs/job_handler'
require 'rjobs/job'
require 'colorize'
require 'rjobs/cli_helper'

module Rjobs
  class RjStatusCli < Thor
    default_task :status
    include  CliHelper   

    desc "status jobs_file","list all jobs contained in the jobs_file"
    def status(jobs_file="")
      jobs = get_jobs_info(jobs_file)

      jobs.each do |job|        
        puts "#{job.name} - #{job.status_with_color}"
      end

    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rjobs-0.3.3.alpha lib/rjobs/rj_status_cli.rb
rjobs-0.3.2.alpha lib/rjobs/rj_status_cli.rb
rjobs-0.3.1.alpha lib/rjobs/rj_status_cli.rb
rjobs-0.3.0.alpha lib/rjobs/rj_status_cli.rb
rjobs-0.2.0.alpha lib/rjobs/rj_status_cli.rb
rjobs-0.1.0.alpha lib/rjobs/rj_status_cli.rb