Sha256: b99f321bf76ea84c542c14beb566a67ab1727a18adaaf93f1f53b394861f8b91

Contents?: true

Size: 1.32 KB

Versions: 13

Compression:

Stored size: 1.32 KB

Contents

module Fastlane
  module Actions
    class ApprepoAction < Action
      def self.is_supported?(_platform)
        true
      end
    end
    class InitAction < Action
      def self.run(_params)
        # sh 'bundle exec rubocop -D'
        command :init do |c|
          c.syntax = 'apprepo init'
          c.description = 'Create the initial `apprepo` configuration'
          c.action do |_args, options|
            if File.exist?('Repofile') || File.exist?('fastlane/Repofile')
              UI.important('You already got a running apprepo setup.')
              return 0
            end

            require 'apprepo/setup'
            config = FastlaneCore::Configuration
            available_opts = Apprepo::Options.available_options
            options = config.create(available_opts, options.__hash__)
            Apprepo::Runner.new(options)
            Apprepo::Setup.new.run(options)
          end
        end
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        'Initializes Repofile'
      end

      def self.available_options
        []
      end

      def self.authors
        ['suculent@me.com']
      end

      def self.is_supported?(_platform)
        true
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fastlane-plugin-apprepo-0.5.5 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.5.4 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.5.3 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.5.2 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.5.1 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.5.0 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.4.3 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.4.2 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.4.1 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.4.0 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.3.9 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.3.8 lib/fastlane/plugin/apprepo/actions/init.rb
fastlane-plugin-apprepo-0.3.7 lib/fastlane/plugin/apprepo/actions/init.rb