Class: Xcvm::VersionManager

Inherits:
Object
  • Object
show all
Defined in:
lib/xcvm.rb

Class Method Summary collapse

Class Method Details



22
23
24
25
26
27
28
29
# File 'lib/xcvm.rb', line 22

def self.print(attribute)
  project = Xcvm::Project.new('Info.plist') 
  if attribute == "version" then
    puts project.version
  elsif attribute == "build" then
    puts project.build
  end
end

.run(action, attribute, segment = nil, value = nil) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/xcvm.rb', line 7

def self.run(action, attribute, segment = nil, value = nil)
  if action == "print" then
    if attribute != nil then
      print(attribute)
    else
      raise "Invalid attribute '#{attribute}'"
    end
  elsif action == "set" then
  elsif action == "bump" then
  elsif action == "increment" then
  elsif action == "decrement" then
  else
  end
end