shortcut of RBatch::Cmd
# File lib/rbatch/cmd.rb, line 114 114: def cmd(cmd_str,opt = nil) 115: Cmd.new(cmd_str,opt).run 116: end
# File lib/rbatch.rb, line 21 21: def common_config 22: if File.exist?(RBatch.common_config_path) 23: yaml = YAML::load_file(RBatch.common_config_path) 24: if yaml 25: return yaml 26: else 27: # If file is emply , YAML::load_file is false 28: return nil 29: end 30: else 31: return nil 32: end 33: end
# File lib/rbatch.rb, line 18 18: def common_config_path 19: File.join(File.dirname(RBatch.program_name),"..","conf","rbatch.yaml") 20: end
Alias of RBatch::Config.new
# File lib/rbatch/config.rb, line 9 9: def config ; Config.new end
# File lib/rbatch.rb, line 7 7: def program_name ; @@program_name ; end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.