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

Add a JRubyExec task and project extension. #12

Closed
ysb33r opened this issue Aug 15, 2014 · 2 comments
Closed

Add a JRubyExec task and project extension. #12

ysb33r opened this issue Aug 15, 2014 · 2 comments

Comments

@ysb33r
Copy link
Contributor

ysb33r commented Aug 15, 2014

This is along the lines of JavaExec or RhinoShellExec. We would like to have the ability to execute a Ruby script as a task.

As a task:

task myRubyScript( type : JRubyExec ) {
  // The name of the script - This is the only mandatory setting
  script 'path/to/script.rb'

  // Parameters to be passed to the script
  scriptArgs '-x', '-y'

  // workingDir in case if needs to be overrided
  workingDir '/working/dir'

  // Config group for gems that need to be made available to the task
  // Defaults to jrubyExec
 gems 'jrubyExec' 

  // Ability to add additional JVM arguments
  jvmArgs '-Dsomething=that'  

  // Add additional environmental variables
 environment 'FOO' : 'bar', 'TESTPORT', '5959'
}

As a project extension:

task myCustomTaskNeedsRubyLove << {
  project.jrubyexec {
    // parameters similar to JRubyExec
  }
}
@rtyler
Copy link
Member

rtyler commented Aug 19, 2014

I think with #16 merged this can be closed

@rtyler rtyler closed this as completed Aug 19, 2014
@ysb33r
Copy link
Contributor Author

ysb33r commented Aug 19, 2014

Yip. I would rather open another issue just to do project.jrubyexec as it is turning out not to be straightforward.

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

No branches or pull requests

2 participants