Sha256: 711f89f2cda2693cc71d32c78fbc98ebde7b799f813e1150220da17218da9fe7

Contents?: true

Size: 768 Bytes

Versions: 66

Compression:

Stored size: 768 Bytes

Contents

module FastlaneCore
  class UI
    class << self
      def current
        require_relative 'implementations/shell'
        @current ||= Shell.new
      end
    end

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

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

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

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
fastlane-2.79.0.beta.20180123010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.78.0 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.78.0.beta.20180122010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.78.0.beta.20180121010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.78.0.beta.20180120010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.78.0.beta.20180119010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.77.1 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.77.0 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.77.0.beta.20180118010004 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.77.0.beta.20180117010004 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.76.1 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.76.0 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.76.0.beta.20180116010004 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.76.0.beta.20180115010004 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.76.0.beta.20180114010004 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.76.0.beta.20180113010004 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.76.0.beta.20180112010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.76.0.beta.20180111010004 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.76.0.beta.20180110010004 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.75.1 fastlane_core/lib/fastlane_core/ui/ui.rb