Sha256: 1c1c0296bfd8a40b1a7fe26e6218dad6fe03f76e59ad297b1da3560e999a6b40

Contents?: true

Size: 789 Bytes

Versions: 20

Compression:

Stored size: 789 Bytes

Contents

module FastlaneCore
  class UI
    class << self
      def current
        @current ||= Shell.new
      end
    end

    def self.method_missing(method_sym, *args, &_block)
      # not using `responds` beacuse we don't care about methods like .to_s and so on
      interface_methods = Interface.instance_methods - Object.instance_methods
      raise "Unknown method '#{method_sym}', supported #{interface_methods}" unless interface_methods.include?(method_sym)

      self.current.send(method_sym, *args)
    end
  end
end

require 'fastlane_core/ui/interface'

# Import all available implementations
Dir[File.expand_path('implementations/*.rb', File.dirname(__FILE__))].each do |file|
  require file
end

require 'fastlane_core/ui/disable_colors' if FastlaneCore::Helper.colors_disabled?

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fastlane_core-0.39.1 lib/fastlane_core/ui/ui.rb
fastlane_core-0.39.0 lib/fastlane_core/ui/ui.rb
fastlane_core-0.38.0 lib/fastlane_core/ui/ui.rb
fastlane_core-0.37.0 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.9 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.8 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.7 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.6 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.5 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.4 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.3 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.2 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.1 lib/fastlane_core/ui/ui.rb
fastlane_core-0.36.0 lib/fastlane_core/ui/ui.rb
fastlane_core-0.35.1 lib/fastlane_core/ui/ui.rb
fastlane_core-0.35.0 lib/fastlane_core/ui/ui.rb
fastlane_core-0.34.0 lib/fastlane_core/ui/ui.rb
fastlane_core-0.33.0 lib/fastlane_core/ui/ui.rb
fastlane_core-0.32.1 lib/fastlane_core/ui/ui.rb
fastlane_core-0.32.0 lib/fastlane_core/ui/ui.rb