Module: Vlad::Merb

Defined in:
lib/vlad/merb.rb

Constant Summary collapse

VERSION =

:nodoc:

'2.1.0'

Class Method Summary collapse

Class Method Details

.maybe_sudo(cmd) ⇒ Object

Runs cmd using sudo if the :merb_use_sudo variable is set.


8
9
10
11
12
13
14
# File 'lib/vlad/merb.rb', line 8

def self.maybe_sudo(cmd)
  if merb_use_sudo
    sudo cmd
  else
    run cmd
  end
end