class Xccoveralls::Command
Public Class Methods
new()
click to toggle source
# File lib/xccoveralls/command.rb, line 21 def initialize # rubocop:disable Metrics/MethodLength program :version, VERSION program :description, DESCRIPTION program :help, 'Author', 'Atsushi Nagase <a@ngs.io>' program :help, 'Blog', 'https://ngs.io' program :help, 'GitHub', 'https://github.com/ngs/xccoveralls' program :help_formatter, :compact global_option('--verbose') do FastlaneCore::Globals.verbose = true ENV['COVERALLS_DEBUG'] = '1' end command(:report) { |command| setup_report(command) } default_command :report end
run!()
click to toggle source
# File lib/xccoveralls/command.rb, line 14 def self.run! FastlaneCore::UpdateChecker.start_looking_for_update NAME new.run! ensure FastlaneCore::UpdateChecker.show_update_status NAME, VERSION end
Public Instance Methods
run_report!(_args, options)
click to toggle source
# File lib/xccoveralls/command.rb, line 48 def run_report!(_args, options) config = FastlaneCore::Configuration.create( Options.available_options, options.__hash__.reject { |k, _v| k == :verbose } ) Xccoveralls::Runner.new(config.values).run! end
setup_report(command)
click to toggle source
# File lib/xccoveralls/command.rb, line 38 def setup_report(command) command.syntax = NAME command.description = 'Send Coverage information to Coveralls' command.action { |args, options| run_report!(args, options) } FastlaneCore::CommanderGenerator.new.generate( Options.available_options, command: command ) end