Method: Profig.handle_rake

Defined in:
lib/profig/install.rb

.handle_rake(path, opts) ⇒ Object

Source Installers



51
52
53
54
55
56
57
58
# File 'lib/profig/install.rb', line 51

def self.handle_rake(path, opts)
  pwd = Dir.pwd
  Dir.chdir path
  target = opts['target']
  cmd = "rake #{target}"
  system cmd
  Dir.chdir pwd
end