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.7 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.29.0.beta.20170429010036 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.6 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.29.0.beta.20170428010037 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.29.0.beta.20170427010043 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.5 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.29.0.beta.20170426010043 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.4 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.29.0.beta.20170425010038 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.29.0.beta.20170424010049 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.29.0.beta.20170423010015 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.29.0.beta.20170422010059 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.3 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.29.0.beta.20170421010107 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.2 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.1 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.0 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.0.beta.20170420010017 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.0.beta.20170419010123 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.28.0.beta.20170418010021 fastlane_core/lib/fastlane_core/ui/ui.rb