require 'fastlane/plugin/diawi/version'

module Fastlane
  module Diawi
    # 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
end

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