Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > bundler+metric_fu customs configuration (not rails) - after changingdefault folder, still creating the default folder tmp

Reply
Thread Tools

bundler+metric_fu customs configuration (not rails) - after changingdefault folder, still creating the default folder tmp

 
 
Pablo Q.
Guest
Posts: n/a
 
      11-05-2010
[Note: parts of this message were removed to make it a legal post.]

Hi folks,

I'm trying to configure the rake file in order to change the default folder
for metric_fu.

I would like to have all the output results in a single folder. I would to
change the default folder "tmp/metric_fu".

The project uses bundler. The problem is that after doing the changes in the
configuration metric_fu still generating the tmp folder.

Here's the configuration done for bundler:

*my_project.gem_spec*

*# -*- encoding: utf-8 -*-*
*$:.push File.expand_path("../lib", __FILE__)*
*require "my_project/version"*
*
*
*Gem::Specification.new do |s|*
* s.name = "my_project"*
* s.version = MyProject::VERSION*
* s.platform = Gem:latform::RUBY*
* s.authors = ["Pablo Quiros"]*
* s.email = [""]*
* s.homepage = "http://rubygems.org/gems/my_project"*
* s.summary = %q{bla bla}*
* s.description = %q{bla bla}*
*
*
* s.rubyforge_project = "my_project"*
*
*
* s.require_paths = ["lib"]*
*
*
* s.add_development_dependency "rspec"*
* s.add_development_dependency "rspec-core"*
*
*
* s.add_development_dependency "metric_fu"*
* s.add_development_dependency "reek"*
* s.add_development_dependency "roodi"*
* s.add_development_dependency "googlecharts"*
*
*
* *
*end*

*Rakefile*

*require 'bundler'*
*Bundler::GemHelper.install_tasks*
*require 'metric_fu'*
*
*
*ROOT = File.dirname(__FILE__)*
*ROOT_METRIC_FU = ROOT + '/metric_fu'*
*
*
*MetricFu::Configuration.run do |config|*
* config.base_directory = ROOT_METRIC_FU*
* config.scratch_directory = "#{ROOT_METRIC_FU}/data/scratch"*
* config.output_directory = "#{ROOT_METRIC_FU}/reports"*
* config.data_directory = "#{ROOT_METRIC_FU}/data/_data"*
* config.metrics = [:churn, :flog, :flay, :reek, :roodi, :rcov, :saikuro]
*
*end*

I'm calling rake like this: "bundle exec rake metrics:all"

Here's the folder structure after calling metrics_fu. In bold is the folder
generated after changing default path values.

my_project/
|-- Gemfile
|-- Gemfile.lock
|-- Rakefile
|-- my_project.gemspec
|-- lib
| |-- my_project
| | `-- version.rb
| `-- my_projectr.rb
|-- metric_fu
| |-- data
| | |-- _data
| | | `-- 20101105.yml
| | `-- scratch
| | |-- churn
| | |-- flay
| | |-- flog
| | |-- rcov
| | | `-- rcov.txt
| | |-- reek
| | |-- roodi
| | `-- saikuro
| |-- report.yml
| `-- reports
| |-- bluff-min.js
| |-- churn.html
| |-- excanvas.js
| |-- flay.html
| |-- flay.js
| |-- flog.html
| |-- flog.js
| |-- index.html
| |-- js-class.js
| |-- rails_best_practices.js
| |-- rcov.html
| |-- rcov.js
| |-- reek.html
| |-- reek.js
| |-- roodi.html
| |-- roodi.js
| `-- saikuro.html
|-- spec
*`-- tmp*
* `-- metric_fu*
* `-- scratch*
* `-- saikuro*
* |-- index_cyclo.html*
* `-- lib*
* |-- ift_ll2_retriever*
* | `-- version.rb_cyclo.html*
* `-- ift_ll2_retriever.rb_cyclo.html*

Thanks!

--
Pablo Q.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default opener for .tmp files Alasdair Computer Support 6 11-14-2007 06:50 PM
I don't undestand why sometime python (or other) add "tmpWvk7zy"(tmp + random string) after "buildout-eggs" in path of python script KLEIN Stephane Python 0 09-24-2007 08:47 PM
Factory for objects w/o default constructor (tmp?) Shawn McGrath C++ 0 01-06-2007 12:15 AM
Infinity Customs - New Forums The Modfather The Lounge 20 12-05-2005 08:36 AM
Creating customs controls for a embeded video jen_designs@hotmail.com Javascript 4 09-09-2005 05:05 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57