Class: Fastlane::Helper::VersionManagerHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/version_manager/helper/version_manager_helper.rb

Class Method Summary collapse

Class Method Details

.version(v) ⇒ Object



9
10
11
# File 'lib/fastlane/plugin/version_manager/helper/version_manager_helper.rb', line 9

def self.version(v)
  v.major.to_s + '.' + v.minor.to_s + '.' + v.patch.to_s
end

.write_file(file_path, content) ⇒ Object



13
14
15
16
17
18
# File 'lib/fastlane/plugin/version_manager/helper/version_manager_helper.rb', line 13

def self.write_file(file_path, content)
  File.open(file_path, "w") { |file|
    file.puts(content)
    file.close
  }
end