Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A commit to resolve issue #13 and wrap thor tasks in dradis binary #21

Merged
merged 2 commits into from
Jun 11, 2011

Conversation

siebertlubbe
Copy link

Have a look and see if you like. The dradis thor wrapper is not really complete, it landed in the pull request by accident but your input would be cool.

etdsoft added a commit that referenced this pull request Jun 11, 2011
A commit to resolve issue #13 and wrap thor tasks in dradis binary
@etdsoft etdsoft merged commit 19551cf into dradis:master Jun 11, 2011
@etdsoft
Copy link
Member

etdsoft commented Jun 11, 2011

Hey Siebs,

This works cool on 1.8.7 but breaks in 1.9.2:

/home/etd/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- lib/tasks/thorfile (LoadError)
from /home/etd/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from ./dradis:6:in `<main>'

Probably we need some trickery around $: this seems to do the trick:

require File.expand_path('../lib/tasks/thorfile', __FILE__)

Will merge and commit the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants