lib/deliver/commands_generator.rb in deliver-1.8.1 vs lib/deliver/commands_generator.rb in deliver-1.9.0
- old
+ new
@@ -4,10 +4,11 @@
HighLine.track_eof = false
module Deliver
class CommandsGenerator
include Commander::Methods
+ UI = FastlaneCore::UI
def self.start
FastlaneCore::UpdateChecker.start_looking_for_update('deliver')
self.new.run
ensure
@@ -61,9 +62,22 @@
require 'deliver/setup'
options = FastlaneCore::Configuration.create(Deliver::Options.available_options, options.__hash__)
Deliver::Runner.new(options) # to login...
Deliver::Setup.new.run(options)
+ end
+ end
+
+ command :generate_summary do |c|
+ c.syntax = 'deliver generate_summary'
+ c.description = 'Generate HTML Summary without uploading/downloading anything'
+ c.action do |args, options|
+ options = FastlaneCore::Configuration.create(Deliver::Options.available_options, options.__hash__)
+ options.load_configuration_file("Deliverfile")
+ Deliver::Runner.new(options)
+ html_path = Deliver::GenerateSummary.new.run(options)
+ UI.success "Successfully generated HTML report at '#{html_path}'"
+ system("open '#{html_path}'") unless options[:force]
end
end
command :download_screenshots do |c|
c.syntax = 'deliver download_screenshots'