Class: IOSBox::Tools::Version

Inherits:
Thor
  • Object
show all
Defined in:
lib/ios-box/tools/version.rb

Instance Method Summary collapse

Instance Method Details

#build(buildnum = nil) ⇒ Object



17
18
19
# File 'lib/ios-box/tools/version.rb', line 17

def build(buildnum = nil)
  IOSBox.new.version.bump_build(buildnum)
end

#bump(type = :patch) ⇒ Object



27
28
29
# File 'lib/ios-box/tools/version.rb', line 27

def bump(type = :patch)
  IOSBox.new.version.bump_marketing(type.to_s.downcase.to_sym)
end

#set(ver) ⇒ Object



22
23
24
# File 'lib/ios-box/tools/version.rb', line 22

def set(ver)
  IOSBox.new.version.set_marketing(ver)
end

#showObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/ios-box/tools/version.rb', line 5

def show
  version = IOSBox.new.version


  puts "  Short Version: #{version[:short]}"
  puts " Bundle Version: #{version[:bundle]}"
  puts "      Technical: %1.4f" % version[:technical]
  puts "   Build Number: #{version[:build]}"
  puts "         Commit: #{version[:commit]}"
end