Module: Flappy::IOSChecking

Included in:
Util::ClassMethods
Defined in:
lib/flappy/util/iOS_check.rb

Instance Method Summary collapse

Instance Method Details

#check_archived_ipa_is_existObject



20
21
22
23
24
25
# File 'lib/flappy/util/iOS_check.rb', line 20

def check_archived_ipa_is_exist
  unless File.exist?(@ipa_path)
    log_iOS('Archive failed')
    exit 1
  end
end

#check_condition(variable, description) ⇒ Object



5
6
7
8
9
10
# File 'lib/flappy/util/iOS_check.rb', line 5

def check_condition(variable, description)
  if variable.blank?
    log_iOS(description)
    exit 1
  end
end

#check_no_output_app(apps) ⇒ Object



13
14
15
16
17
18
# File 'lib/flappy/util/iOS_check.rb', line 13

def check_no_output_app(apps)
  if apps.length == 0
    log_iOS('Builded has no output app, Can not be packaged')
    exit 1
  end
end