Sha256: e47d94375d0c0a274fd4edb66ea0828b769ed6ef853bdb673d6fa078311f8d22
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 Bytes
Contents
#!/usr/bin/env ruby require "rake" require "resque/tasks" command = ARGV.shift file = ARGV.shift require 'grappling' if command == "go" require File.join(".", file) set :run, true elsif command == "do" require File.join(".", file) app = Rake.application app.init # run the work queue ENV["QUEUE"] = GrapplingJob.instance_variable_get("@queue").to_s app['resque:work'].invoke elsif command == "console" require 'irb' require File.join(".", file) ARGV.clear IRB.start else puts "Usage: grapple [go|do] [file]" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grappling-0.1.0 | bin/grapple |
grappling-0.0.3 | bin/grapple |