Class: HighFive::Thor::Tasks::IosTasks
- Inherits:
-
HighFive::Thor::Task
- Object
- Thor
- HighFive::Thor::Task
- HighFive::Thor::Tasks::IosTasks
- Includes:
- IosHelper, Thor::Actions
- Defined in:
- lib/high_five/thor/tasks/ios_tasks.rb
Instance Method Summary collapse
Methods included from IosHelper
#info_plist_path, #xcodeproj_path
Methods inherited from HighFive::Thor::Task
Constructor Details
This class inherits a constructor from HighFive::Thor::Task
Instance Method Details
#build ⇒ Object
37 38 39 |
# File 'lib/high_five/thor/tasks/ios_tasks.rb', line 37 def build end |
#set_version ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/high_five/thor/tasks/ios_tasks.rb', line 16 def set_version info = info_plist_path([:target]) puts "Using #{info}" plist = Plist::parse_xml(info) if ([:version]) puts "Changing version from #{plist["CFBundleShortVersionString"]} => #{options[:version]}" plist["CFBundleShortVersionString"] = [:version] end if ([:build_number]) puts "Changind build number from #{plist["CFBundleVersion"]} => #{options[:build_number]}" plist["CFBundleVersion"] = [:build_number] end File.open(info, 'w') do |f| f.write(Plist::Emit.dump(plist)) end puts "Wrote Info.plist succesfully" end |