Sha256: 28faada91b21e2a1678a678af18c93c2cc6ac2e5d4b3bd477454f7a87b251d01

Contents?: true

Size: 1011 Bytes

Versions: 2

Compression:

Stored size: 1011 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('[apprepo.rb]: Initializing new CommandsGenerator')
  # cgen = Apprepo::CommandsGenerator.new
  # UI.message('[apprepo.rb]: Downloading Manifest...')
  # cgen.download_manifest
  # UI.message('[apprepo.rb]: Running Deployment...')
  # cgen.run
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastlane-plugin-apprepo-0.3.8 lib/fastlane/plugin/apprepo.rb
fastlane-plugin-apprepo-0.3.7 lib/fastlane/plugin/apprepo.rb