Sha256: 3fbfb0a52a5cf22c5e145e5e251da7270feed75b19e5d5d877754aae016d0241

Contents?: true

Size: 1012 Bytes

Versions: 19

Compression:

Stored size: 1012 Bytes

Contents

#!/usr/bin/env ruby -W0
require 'thor'

$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require_relative "../lib/rhoconnect/utilities"
include Utilities

# Default settings (template/settings/settings.yml)
RHOCONNECT_PORT  = 9292
REDIS_SERVER_URL = "localhost:6379"
PUSH_SERVER_URL  = "http://someappname@localhost:8675/"
API_TOKEN        = "my-rhoconnect-token"

class Execute < Thor
  no_tasks {
    def self.define_task(&block)
      Execute.class_eval(&block)
    end
  }

  require_relative "../commands/parser"
end

begin
  Execute.start
rescue SystemExit => se
  # This is normal
rescue Exception => e
  if ARGV[0] == 'update' and e.class == Gem::LoadError
    puts e.message
    puts "\nUpdate your Gemfile to latest rhoconnect release and run 'rhoconnect update' again."
    puts "See http://docs.rhomobile.com/rhoconnect/install#upgrading-an-existing-application about update details.\n\n"
  else
    puts "Run rhoconnect command error: #{e.inspect}"
    puts e.backtrace.join("\n")
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 bin/rhoconnect
rhoconnect-7.5.1 bin/rhoconnect
rhoconnect-7.4.1 bin/rhoconnect
rhoconnect-7.1.17 bin/rhoconnect
rhoconnect-6.2.0 bin/rhoconnect
rhoconnect-6.0.11 bin/rhoconnect
rhoconnect-5.5.18 bin/rhoconnect
rhoconnect-5.5.17 bin/rhoconnect
rhoconnect-5.5.15 bin/rhoconnect
rhoconnect-5.5.0.22 bin/rhoconnect
rhoconnect-5.5.2 bin/rhoconnect
rhoconnect-5.5.0.7 bin/rhoconnect
rhoconnect-5.5.0.3 bin/rhoconnect
rhoconnect-5.5.0 bin/rhoconnect
rhoconnect-5.1.1 bin/rhoconnect
rhoconnect-4.0.4 bin/rhoconnect
rhoconnect-4.0.3 bin/rhoconnect
rhoconnect-4.0.2 bin/rhoconnect
rhoconnect-4.0.1 bin/rhoconnect