Sha256: 798b2229f027b9b258ef1f30637d71c54b01c4f142212633ba3b10affc5351d3

Contents?: true

Size: 715 Bytes

Versions: 327

Compression:

Stored size: 715 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

Version data entries

327 entries across 327 versions & 1 rubygems

Version Path
fastlane-2.57.0.beta.20170918010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.57.0.beta.20170917010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.57.0.beta.20170916010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.57.0.beta.20170915010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.57.0.beta.20170914010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.57.0.beta.20170913010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170912010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170911010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170910010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170909010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170908010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170907010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170906010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170905010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170904010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170903010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170902010003 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.56.0.beta.20170901010002 fastlane_core/lib/fastlane_core/ui/ui.rb
fastlane-2.55.0 fastlane_core/lib/fastlane_core/ui/ui.rb