Sha256: c9cb99c3c06429e9d32f3f6f7266debbb17c0f5e63580aa0a2b02017e7d6b77b

Contents?: true

Size: 957 Bytes

Versions: 3

Compression:

Stored size: 957 Bytes

Contents

#!/usr/bin/env ruby

# encoding: utf-8

require 'json'
require 'fastlane'
require 'fastlane_core'

require_relative 'apprepo/version'

module Fastlane
  # Root module of the plugin (seems like a class-loader)
  module Apprepo
    # Return all .rb files inside the "actions" and "helper" directory
    def self.all_classes
      Dir[File.expand_path('*/{actions,helper}/*.rb', File.dirname(__FILE__))]
    end
  end

  Encoding.default_external = Encoding::UTF_8
  Encoding.default_internal = Encoding::UTF_8

  # By default we want to import all available actions and helpers
  # A plugin can contain any number of actions and plugins
  Fastlane::Apprepo.all_classes.each do |current|
    require current
  end

  # Test only, should be removed...
  UI.message('Initializing new CommandsGenerator')
  cgen = Apprepo::CommandsGenerator.new
  UI.message('Downloading Manifest...')
  cgen.download_manifest
  UI.message('Running Deployment...')
  cgen.run
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane-plugin-apprepo-0.3.3 lib/fastlane/plugin/apprepo.rb
fastlane-plugin-apprepo-0.3.1 lib/fastlane/plugin/apprepo.rb
fastlane-plugin-apprepo-0.3.0 lib/fastlane/plugin/apprepo.rb