lib/pilot/manager.rb in pilot-0.1.7 vs lib/pilot/manager.rb in pilot-0.2.0
- old
+ new
@@ -18,20 +18,19 @@
# The app object we're currently using
def app
@apple_id ||= fetch_app_id
- unless (@app ||= Spaceship::Application.find(@apple_id))
+ @app ||= Spaceship::Application.find(@apple_id)
+ unless @app
raise "Could not find app with #{(config[:apple_id] || config[:app_identifier])}"
end
return @app
end
- # Access the current configuration
- def config
- @config
- end
+ # Access the current configuration
+ attr_reader :config
# Config Related
################
def fetch_app_id
@@ -54,6 +53,6 @@
result ||= FastlaneCore::IpaFileAnalyser.fetch_app_identifier(config[:ipa])
result ||= ask("Please enter the app's bundle identifier: ")
return result
end
end
-end
\ No newline at end of file
+end