Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2017
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to run a ruby script through RAKE...

    please provide the correct syntax which works when you edit the RAKEfile to run the .rb script.

  2. #2
    New to the CF scene
    Join Date
    Apr 2016
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This works with Rake version 10.0.3:
    Code:
    require 'rake'
    app = Rake.application
    app.init
    # do this as many times as needed
    app.add_import 'some/other/file.rake'
    # this loads the Rakefile and other imports
    app.load_rakefile
    
    app['sometask'].invoke
    As knut said, use reenable if you want to invoke multiple times.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •