Sha256: 02406aa6ac54e9653fd3289095dd294ff4ff723266ab53fa660e355549288498

Contents?: true

Size: 999 Bytes

Versions: 1

Compression:

Stored size: 999 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

1 entries across 1 versions & 1 rubygems

Version Path
fastlane-plugin-apprepo-0.3.6 lib/fastlane/plugin/apprepo.rb