bin/blast_off in blast_off-0.1.0 vs bin/blast_off in blast_off-0.2.0
- old
+ new
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
require 'gli'
+require 'rainbow'
require 'blast_off'
include GLI::App
program_desc 'An iOS beta distribution tool.'
@@ -26,15 +27,16 @@
help_now!('IPA file is required') unless options[:ipa_file_path]
help_now!('Access Key is required') unless options[:access_key]
help_now!('Secret Key is required') unless options[:secret_key]
help_now!('Bucket is required') unless options[:bucket]
- BlastOff::Services::Qiniu.new(
+ url = BlastOff::Services::Qiniu.new(
ipa_file_path: options[:ipa_file_path],
access_key: options[:access_key],
secret_key: options[:secret_key],
bucket: options[:bucket]
).distribute
+ puts url.foreground(:white).background(:blue)
end
end
pre do |global,command,options,args|
true