Sha256: 4b08959373c5b3d4ac3707e227acec4eab19d34abe34f014de4a95031dce4ef7

Contents?: true

Size: 951 Bytes

Versions: 56

Compression:

Stored size: 951 Bytes

Contents

require 'yaml'

unless File.exists? "build.yml"
  puts "Cannot find build.yml"
  exit 1
end


$app_config = YAML::load_file("build.yml")
$app_path = File.expand_path(File.dirname(__FILE__))

if ENV["RHO_HOME"].nil?
  if $app_config["sdk"]
    rakefilepath = File.join(File.expand_path($app_config['sdk']), 'Rakefile')
  else
    begin
      rakefilepath = `get-rhodes-info --rhodes-path`.chomp
      rakefilepath  = File.join(rakefilepath, "Rakefile")
    rescue
      rakefilepath  = ""	
    end
  end  
else
  rakefilepath = "#{ENV["RHO_HOME"]}/Rakefile"
end

unless File.exists? rakefilepath
  puts "\nCannot find your Rhodes gem or source path: #{rakefilepath}"
  puts "\nIf you have the sdk on your path or have installed the gem this"
  puts "can be resolved by running 'set-rhodes-sdk'"
  puts "\nYou can also set this manually by modifying your build.yml or"
  puts "setting the environment variable RHO_HOME"
  exit 1
end

load rakefilepath

Version data entries

56 entries across 14 versions & 1 rubygems

Version Path
rhodes-7.6.0 spec/server_spec/rhoconnect_push_client/Rakefile
rhodes-7.6.0 spec/server_spec/gcm_push_client/Rakefile
rhodes-7.6.0 res/generators/templates/application/Rakefile
rhodes-7.6.0 res/prebuild_base_app/Rakefile
rhodes-7.5.1 res/generators/templates/application/Rakefile
rhodes-7.5.1 res/prebuild_base_app/Rakefile
rhodes-7.5.1 spec/server_spec/gcm_push_client/Rakefile
rhodes-7.5.1 spec/server_spec/rhoconnect_push_client/Rakefile
rhodes-7.4.1 res/prebuild_base_app/Rakefile
rhodes-7.4.1 spec/server_spec/rhoconnect_push_client/Rakefile
rhodes-7.4.1 res/generators/templates/application/Rakefile
rhodes-7.4.1 spec/server_spec/gcm_push_client/Rakefile
rhodes-7.1.17 spec/server_spec/rhoconnect_push_client/Rakefile
rhodes-7.1.17 spec/server_spec/gcm_push_client/Rakefile
rhodes-7.1.17 res/generators/templates/application/Rakefile
rhodes-7.1.17 res/prebuild_base_app/Rakefile
rhodes-6.2.0 res/generators/templates/application/Rakefile
rhodes-6.2.0 spec/server_spec/gcm_push_client/Rakefile
rhodes-6.2.0 res/prebuild_base_app/Rakefile
rhodes-6.2.0 spec/server_spec/rhoconnect_push_client/Rakefile