Class: Fastlane::Helper::GenericHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/unity_exporter/helper/generic_helper.rb

Class Method Summary collapse

Class Method Details

.shellify(path) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fastlane/plugin/unity_exporter/helper/generic_helper.rb', line 11

def self.shellify(path)
  if FastlaneCore::Helper.is_mac?
    return Shellwords.escape(path)

  elsif FastlaneCore::Helper.is_windows?
    return "\"#{path}\""

  elsif FastlaneCore::Helper.linux?
    # TODO
    UI.error("Not implemented yet")

  end
end