Class: Ive::Base
- Inherits:
-
Object
- Object
- Ive::Base
- Defined in:
- lib/ive/base.rb
Class Method Summary collapse
Class Method Details
.bump(type, path, with_git = false) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/ive/base.rb', line 15 def bump(type, path, with_git=false) path = Dir.pwd unless path puts "-- Using the current project: #{path}" if project = xcode_project(path) config = config project, path return if config.nil? puts "-- Tagging and commiting enabled: #{with_git ? "yes" : "no"}" if with_git if Git.changes?(path) puts "-- This repository has uncommited changes please commit these changes before performing a version bump." return else Git.commit path, Ive::Bump.public_send(type, config, with_git) end else Ive::Bump.public_send type, config, with_git end else puts "-- No project file found" end end |
.list ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/ive/base.rb', line 7 def list puts "-- Ive supports the following version bumps:" puts "- major" puts "- minor" puts "- patch" puts "- build" end |
.version(path) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/ive/base.rb', line 39 def version path puts "-- Using the current project: #{path}" if project = xcode_project(path) config = config project, path puts "-- Version #{config.info_plist.marketing_version}" puts "-- Build version #{config.info_plist.version}" else puts "-- No project file found" end end |