Class: Spaceship::Globals

Inherits:
Object
  • Object
show all
Defined in:
spaceship/lib/spaceship/globals.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.check_sessionObject

if spaceship is run with the –check_session flag this value will be set to true



17
18
19
# File 'spaceship/lib/spaceship/globals.rb', line 17

def self.check_session
  return @check_session
end

Class Method Details

.verbose?Boolean

if spaceship is run with a FastlaneCore available respect the global state there otherwise fallback to $verbose

Returns:

  • (Boolean)


9
10
11
12
13
14
# File 'spaceship/lib/spaceship/globals.rb', line 9

def self.verbose?
  if Object.const_defined?("FastlaneCore")
    return FastlaneCore::Globals.verbose? # rubocop:disable Require/MissingRequireStatement
  end
  return $verbose
end