Comment/Devbug traverser ruby Script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Comment/Devbug traverser ruby Script
# 1  
Old 10-21-2011
Comment/Devbug traverser ruby Script

Hello all,
i need some help, having never herd of ruby before i joined my workplace im now saddled with alot of scripts written in ruby and i need to find out how to debug certain things (values of array's hashes etc). What i need is how to view each step in this command in a log file:

traverser.proc_node(proc_tree, 'root', Hash.new, Hash.new, verify_action.method(:Run), 0, 1, @loadset_hash)


do i do something like:
Log(LogLevels.normal, traverser.proc_node(proc_tree, 'root', Hash.new, Hash.new, verify_action.method(:Run), 0, 1, @loadset_hash) )??? Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create a file with comment in script

Hello, Be indulgent for my english. Can you help me ? function f1 { } egrep -v '^#' list_file \ | while read arg1 arg2 arg3 arg4; do f1 $arg1 $arg2 $arg3 $arg4 done In list_file there is I want to replace list_file by a $var then when i launch the script with a file's... (13 Replies)
Discussion started by: amazigh42
13 Replies

2. Web Development

Permission problems calling Ruby from php script

I'm just getting my feet wet with web development, so hopefully this is a simple thing I'm overlooking, but so far I'm stumped. I have a php script that calls Ruby via exec(). This works fine in my test environment, but when I moved it to my production environment I run into a permissions... (7 Replies)
Discussion started by: dantes990
7 Replies

3. Shell Programming and Scripting

Need to comment some code via script

Hi, I am writing a shell script, which should comment a if-fi loop in a file. From google i found that, we can use below qualifier to comment a section of code, :<<COMMENT COMMENT But i could not place these keywords before and after if-fi loop. Any help would be appreciated. Finally the... (2 Replies)
Discussion started by: successlin
2 Replies

4. UNIX for Dummies Questions & Answers

multiline comment in shell script

Is thery any way to give comment to multiple line without explicitly specifying # at the begining of each line ? (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies

5. Shell Programming and Scripting

How do I add grep into this ruby script?

I have this script that will increase my entered date, seven days. I need to add something to this script (i don't know how to do it) that will search a log file doing a word count for the words password and change and put that output to a file. then again for the next date and so on and so on. The... (0 Replies)
Discussion started by: bbraml
0 Replies

6. UNIX for Dummies Questions & Answers

Why do a unix script starts with a comment?

For eg: #!/usr/bin/ksh <remaining code goes here> .. .. Does the compiler ignores that? Thanks (2 Replies)
Discussion started by: ajincoep
2 Replies

7. Shell Programming and Scripting

best way for removing comment from ruby program

Hi all, I would want to remove all comments from my ruby/rails program. It may seem like a simple task, but it is not so. Because you need to have your tool implemented as like your language parser which is actually not so easy. And am in the search of it, to remove comment from ruby/rails.... (4 Replies)
Discussion started by: thegeek
4 Replies

8. Shell Programming and Scripting

Pls comment on my script.

Hi guys, hope you scripting gurus here can help me out, the logic in my script somehow not working the way it should, this script part of a bigger backup script suppose to do some checking on the cluster prior to bringing up the package on MC/SG after backend cloning operation, this portion is... (3 Replies)
Discussion started by: sparcguy
3 Replies

9. Programming

Needed help in a ruby script with user interaction involved!

Hi all, I am struck at this point and needed some help in ruby I wanted to write a script that accepts the no of VNICs the user wants to create and then ask for the name of each Vnic he wants then use these names to create the corresponding Vnics Eg: suppose that there are 2 Vnics to be... (0 Replies)
Discussion started by: wrapster
0 Replies

10. Shell Programming and Scripting

Block Comment in Shell script

how to put multiline comments in a shell script like /* Some code */ in C language? (3 Replies)
Discussion started by: skyineyes
3 Replies
Login or Register to Ask a Question
RUBY-BUILD(1)															     RUBY-BUILD(1)

NAME
ruby-build - compile and install Rubies SYNOPSIS
ruby-build [-v|--verbose] [-k|--keep] definition prefix ruby-build --definitions ruby-build --version ruby-build [-h|--help] rbenv install [-k|--keep] definition DESCRIPTION
ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems. ruby-build downloads, builds and installs the Ruby version specified in a definition into a prefix directory. Definitions can be chosen from the list of installed definitions or by specifying a file path for a definition. rbenv(1) users can also use the provided rbenv install command, which installs Rubies into the rbenv directory. OPTIONS
--definitions List available definitions. -k, --keep Don't delete source code after installation. -v, --verbose Display compiler messages on standard output. --version Show ruby-build version and exit. -h, --help Show usage information and exit. EXAMPLES
Install Ruby 1.9.3 (MRI, patch level 0) to ~/rubies/mri-1.9.3 $ ruby-build 1.9.3-p0 ~/rubies/mri-1.9.3 Install Ruby Enterprise Edition 1.8.7 (patch level 2011.03) for rbenv(1): $ rbenv install ree-1.8.7-2011.03 Install Ruby from a custom definition into ~/your-ruby: $ rbenv install /path/to/your/own/ruby/definition ~/your-ruby ENVIRONMENT
CC Sets the path to the C compiler. CONFIGURE_OPTS Options that are passed to configure when building a Ruby. MAKE_OPTS Options that are passed to make when building a Ruby. MAKEOPTS Used instead of MAKE_OPTS when MAKE_OPTS is not defined. TMPDIR Sets the location where ruby-build stores temporary files. RUBY_BUILD_BUILD_PATH Sets the location in which sources are downloaded and built. AUTHORS
ruby-build is developed by Sam Stephenson <sam@37signals.com>. This man page was written for the Debian GNU/Linux distribution by Sebastian Boehm <sebastian@sometimesfood.org> but may be used by others. SEE ALSO
rbenv(1) June 2012 RUBY-BUILD(1)