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.81.0.beta.20180210010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.81.0.beta.20180209010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.81.0.beta.20180208010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.81.0.beta.20180207010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.81.0.beta.20180206010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.81.0.beta.20180205010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.81.0.beta.20180204010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.81.0.beta.20180203010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.81.0.beta.20180202010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.80.0 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.80.0.beta.20180201010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.80.0.beta.20180131010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.80.0.beta.20180130010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.79.0 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.79.0.beta.20180129010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.79.0.beta.20180128010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.79.0.beta.20180127010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.79.0.beta.20180126010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.79.0.beta.20180125010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.79.0.beta.20180124010003 fastlane_core/lib/fastlane_core/ui/ui.rb