lib/deploygate/commands/deploy/build.rb in deploygate-0.1.0 vs lib/deploygate/commands/deploy/build.rb in deploygate-0.1.1

- old
+ new

@@ -7,11 +7,11 @@ # @param [Array] args # @param [Hash] options # @return [void] def run(args, options) # android/ios build - work_dir = args.first + work_dir = args.empty? ? Dir.pwd : args.first if DeployGate::Project.ios?(work_dir) root_path = DeployGate::Xcode::Ios.project_root_path(work_dir) workspaces = DeployGate::Xcode::Ios.find_workspaces(root_path) ios(workspaces, options) @@ -40,16 +40,12 @@ ipa_path = DeployGate::Xcode::Ios.build(analyze, target_scheme, codesigning_identity, method) Push.upload([ipa_path], options) end def print_no_target - message = <<EOF - -No deploy target found. -Please run on the root directory of Android/iOS project or specify .apk/.ipa file to deploy. - -EOF - DeployGate::Message::Warning.print(message) + puts '' + puts HighLine.color(I18n.t('commands.deploy.build.print_no_target'), HighLine::YELLOW) + puts '' end end end end end