Sha256: 68068caf1489e6f57ac5e6ce750b0f296116905808b8b28c654e86f5bdad568e

Contents?: true

Size: 631 Bytes

Versions: 3

Compression:

Stored size: 631 Bytes

Contents

# frozen_string_literal: true

namespace :xconn do
  desc "Start SAMPLE app"
  task :run, [:host, :port, :realm, :directory, :app] do |_t, args|
    host      = args[:host]       || "127.0.0.1"
    port      = args[:port]       || 8080
    realm     = args[:realm]      || "realm1"
    app       = args[:app]        || "Example"
    directory = args[:directory]  || "./example/sample"

    command = "bin/xconn -h #{host} -p #{port} -r #{realm} -d #{directory} -a #{app}"

    puts "Running: #{command}"

    trap("SIGINT") do
      puts "\nReceived SIGINT. Gracefully exiting..."

      exit 0
    end

    `#{command}`
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xconn-0.1.2 lib/tasks/tasks.rake
xconn-0.1.1 lib/tasks/tasks.rake
xconn-0.1.0 lib/tasks/tasks.rake