Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

verbose rakefile - print all executed command lines to stdout

I've just began building my first Rakefile (Ruby version of makefile), and I'd like to debug my script easily using verbose mode (like makefile -V or bash -x) is there an option to do so on ruby ?

thanks

like image 264
Zohar81 Avatar asked May 23 '17 08:05

Zohar81


People also ask

How do I make a makefile verbose?

Show activity on this post. Library makefiles, which are generated by autotools (the ./configure you have to issue) often have a verbose option, so basically, using make VERBOSE=1 or make V=1 should give you the full commands. But this depends on how the makefile was generated.

How do I make all verbose statements appear in the output?

The $VerbosePreference preference variable controls if Write-Verbose statements appear. By default, the value of $VerbosePreference is set to SilentlyContinue, which means the messages do not appear. Because this is a simple preference variable, all I need to do is to change it in my profile. Now all verbose messages will appear in the output.

How do I print uptime output to standard out in Ansible?

We created a playbook file called check_uptime.yml, as shown. When executed, the uptime details are printed to the terminal as shown. This guide demonstrates how you can print the command’s output to standard out in Ansible. This was enlightening, and that you can now print the output of your command to std out.

What are the downsides of using make with POSIX shell scripts?

One downside of this method is that you have to ensure that the shell that will be used is sh, which is the default one used by Make as they are POSIX, but could be changed with the SHELL make variable.


1 Answers

rake --trace will probably give you everything you need

like image 165
Alejandro C. Avatar answered Oct 01 '22 18:10

Alejandro C.