Sha256: a7274f4884453111a84ae0cded002e4a567e2c184d10241f55fbe414af1bede3

Contents?: true

Size: 799 Bytes

Versions: 32

Compression:

Stored size: 799 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` because we don't care about methods like .to_s and so on
      interface_methods = 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

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

32 entries across 32 versions & 1 rubygems

Version Path
fastlane-2.28.0.beta.20170417010100 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.0.beta.20170416010028 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.0.beta.20170415010110 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.27.0 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.27.0.beta.20170414010035 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.27.0.beta.20170413010117 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.27.0.beta.20170412010036 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.27.0.beta.20170411010118 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.27.0.beta.20170410010020 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.27.0.beta.20170409010031 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.26.1 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.27.0.beta.20170408010009 fastlane_core/lib/fastlane_core/ui/ui.rb