fastlane/lib/fastlane/commands_generator.rb in fastlane-2.75.0.beta.20180109010003 vs fastlane/lib/fastlane/commands_generator.rb in fastlane-2.75.0

- old
+ new

@@ -113,33 +113,23 @@ c.syntax = 'fastlane init' c.description = 'Helps you with your initial fastlane setup' c.option('-u STRING', '--user STRING', String, 'iOS projects only: Your Apple ID') - CrashlyticsBetaCommandLineHandler.apply_options(c) + # CrashlyticsBetaCommandLineHandler.apply_options(c) c.action do |args, options| - if args[0] == 'beta' - beta_info = CrashlyticsBetaCommandLineHandler.info_from_options(options) - Fastlane::CrashlyticsBeta.new(beta_info, Fastlane::CrashlyticsBetaUi.new).run - else - is_swift_fastfile = args.include?("swift") - Fastlane::Setup.new.run(user: options.user, is_swift_fastfile: is_swift_fastfile) - end + # if args[0] == 'beta' + # beta_info = CrashlyticsBetaCommandLineHandler.info_from_options(options) + # Fastlane::CrashlyticsBeta.new(beta_info, Fastlane::CrashlyticsBetaUi.new).run + # else + is_swift_fastfile = args.include?("swift") + Fastlane::Setup.start(user: options.user, is_swift_fastfile: is_swift_fastfile) + # end end end - command :init_swift do |c| - c.syntax = 'fastlane init_swift' - c.description = 'Helps you with your initial fastlane setup for Swift' - c.option('-u STRING', '--user STRING', String, 'iOS projects only: Your Apple ID') - - c.action do |args, options| - Fastlane::Setup.new.run(user: options.user, is_swift_fastfile: true) - end - end - command :new_action do |c| c.syntax = 'fastlane new_action' c.description = 'Create a new custom action for fastlane.' c.option('--name STRING', String, 'Name of your new action') @@ -352,10 +342,12 @@ # return true if the Fastfile is available def ensure_fastfile return true if FastlaneCore::FastlaneFolder.setup? create = UI.confirm('Could not find fastlane in current directory. Make sure to have your fastlane configuration files inside a folder called "fastlane". Would you like to set fastlane up?') - Fastlane::Setup.new.run if create + if create + Fastlane::Setup.start + end return false end end end