Module: Plist
- Defined in:
- lib/modules/plist.rb
Instance Method Summary collapse
- #build_number(info_plist_path) ⇒ Object
- #print(info_plist_path, key) ⇒ Object
- #set(info_plist_path, key, value) ⇒ Object
- #set_build_number(info_plist_path, build_number) ⇒ Object
- #set_version(info_plist_path, version) ⇒ Object
- #version(info_plist_path) ⇒ Object
Instance Method Details
#build_number(info_plist_path) ⇒ Object
16 17 18 |
# File 'lib/modules/plist.rb', line 16 def build_number(info_plist_path) return print("#{info_plist_path}", "#{PLIST_BUILD_NUMBER_KEY}") end |
#print(info_plist_path, key) ⇒ Object
28 29 30 |
# File 'lib/modules/plist.rb', line 28 def print(info_plist_path, key) return `#{PLIST_BUDDY} -c "Print :#{key}" "#{info_plist_path}"`.strip end |
#set(info_plist_path, key, value) ⇒ Object
24 25 26 |
# File 'lib/modules/plist.rb', line 24 def set(info_plist_path, key, value) return `#{PLIST_BUDDY} -c "Set :#{key} #{value}" "#{info_plist_path}"`.strip end |
#set_build_number(info_plist_path, build_number) ⇒ Object
20 21 22 |
# File 'lib/modules/plist.rb', line 20 def set_build_number(info_plist_path, build_number) return set("#{info_plist_path}", "#{PLIST_BUILD_NUMBER_KEY}", "#{build_number}") end |
#set_version(info_plist_path, version) ⇒ Object
12 13 14 |
# File 'lib/modules/plist.rb', line 12 def set_version(info_plist_path, version) return set("#{info_plist_path}", "#{PLIST_VERSION_KEY}", "#{version}") end |
#version(info_plist_path) ⇒ Object
8 9 10 |
# File 'lib/modules/plist.rb', line 8 def version(info_plist_path) return print("#{info_plist_path}", "#{PLIST_VERSION_KEY}") end |