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
haml(1) 						      General Commands Manual							   haml(1)

NAME
haml - Translates Haml markup into its HTML equivalent SYNOPSIS
haml [options] [INPUT] [OUTPUT] DESCRIPTION
Uses the Haml engine to parse the selected template and outputs the result to the specified file. OPTIONS
--rails RAILS_DIR Install Haml and Sass to a Rails project -c, --check Just check syntax, don't evaluate. -s, --stdin Read input from standard input instead of an input file --trace Show a full traceback on error -t, --style NAME Output style. Can be indented (default) or ugly. -f, --format NAME Output format. Can be xhtml (default), html4, or html5. -e, --escape-html Escape HTML characters (like ampersands and angle brackets) by default. -q, --double-quote-attributes Set attribute wrapper to double-quotes (default is single). -r, --require FILE Same as 'ruby -r'. -I, --load-path PATH Same as 'ruby -I'. --debug Print out the precompiled Ruby source. -?, -h, --help Show a usage summary -v, --version Print version SEE ALSO
This program is shipped as part of the libhaml-ruby1.8 library package, you can check its corresponding documentation can be found in the libhaml-ruby-doc package. AUTHOR
This manual page was written by Gunnar Wolf <gwolf@debian.org>, based on the command-line output of this program, for the Debian GNU/Linux system (but may be freely used by others). December 18, 2008 haml(1)