lib/osc/machete/job.rb in osc-machete-1.2.2 vs lib/osc/machete/job.rb in osc-machete-2.0.0.pre1
- old
+ new
@@ -54,11 +54,11 @@
# @return [String, nil] the PBS job id, or nil if not set
# @!attribute [r] script_path
# @return [String, nil] path of the job script, or nil if not set
#
class OSC::Machete::Job
- attr_reader :pbsid, :script_path, :account_string, :host
+ attr_reader :pbsid, :script_path, :account_string
class << self
# set this to change the billable account that is used by default
attr_accessor :default_account_string
end
@@ -203,10 +203,10 @@
# FIXME: removing a directory is always a dangerous action.
# I wonder if we can add more tests to make sure we don't delete
# something if the script name is munged
# recursively delete the directory after killing the job
- Pathname.new(path).rmtree if path && rmdir && File.exist?(path)
+ Pathname.new(path).rmtree if path && rmdir && File.exists?(path)
end
end
# Error class thrown when script is not available.
class ScriptMissingError < StandardError; end