warbler icon indicating copy to clipboard operation
warbler copied to clipboard

Create jar from script in rails project

Open trobrock opened this issue 13 years ago • 1 comments

I have a rails application which I do not use the server portion of it, I use a script that runs my service. It seems since the app is rails based warbler wants to create a war, is there a way to force it to create a jar from my script instead?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1446650-create-jar-from-script-in-rails-project?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).

trobrock avatar Jul 02 '12 22:07 trobrock

I use a little hack in my warble.rb to achieve this:

class Warbler::Traits::Rails # Maybe you'll need to patch Warbler::Traits::Rack too
  def self.detect?
    false
  end
end

But it would be very nice if this could be done without hacking :) (see #10 for example)

tillsc avatar Dec 11 '12 13:12 tillsc