Sha256: 9f6212adae1d760d73148a92dbaa460191f6cc58854bab311d069f261249f17b
Contents?: true
Size: 938 Bytes
Versions: 4
Compression:
Stored size: 938 Bytes
Contents
module FWToolkit module Tasks class Distribute < Thor include Rake::DSL if defined?(Rake::DSL) include Thor::Actions no_tasks do def install_tasks namespace :distribute do task :validate_hockey_token do unless ENV['HOCKEY_APP_TOKEN'] abort 'Please set HOCKEY_APP_TOKEN environment variable in ~/.bashrc (HOCKEY_APP_TOKEN=<your token>; export HOCKEY_APP_TOKEN)' end end desc 'Build and distribute to HockeyApp' task :hockey => ["validate_hockey_token", "xcode:ipa"] do token = ENV['HOCKEY_APP_TOKEN'] artifacts_dir = FWToolkit::Tasks.cc_artifacts_dir sh %{bundle exec ipa distribute:hockeyapp --token #{token} -m ""} end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems