Class: System::Update

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

Constant Summary collapse

AUTO_RUN =
ARGV[0]

Instance Method Summary collapse

Instance Method Details

#brewObject



38
39
40
41
# File 'lib/system.rb', line 38

def brew
  Brew.update
  Brew.cleanup
end

#osxObject



48
49
50
51
# File 'lib/system.rb', line 48

def osx
  OSX.intro
  OSX.check_mac_store_updates
end

#performObject



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/system.rb', line 20

def perform
  OSX.system_info
  ruby

  ZSH.update if ZSH.installed?
  Pretzo.update if Pretzo.installed?
  Rbenv.update if Rbenv.installed?

  brew if Brew.installed?
  rvm if RVM.installed?
  osx
end

#rubyObject



33
34
35
36
# File 'lib/system.rb', line 33

def ruby
  Ruby.check_rubygems_version
  Ruby.check_bundler_version
end

#rvmObject



43
44
45
46
# File 'lib/system.rb', line 43

def rvm
  RVM.update
  RVM.cleanup
end