Top Level Namespace

Defined Under Namespace

Modules: SCS

Instance Method Summary collapse

Instance Method Details

#inreplace(file, pattern, replacement) ⇒ Object



10
11
12
13
# File 'ext/scs/extconf.rb', line 10

def inreplace(file, pattern, replacement)
  contents = File.read(file)
  File.write(file, contents.gsub(pattern, replacement))
end

#run(command) ⇒ Object



3
4
5
6
7
8
# File 'ext/scs/extconf.rb', line 3

def run(command)
  puts ">> #{command}"
  unless system(command)
    raise "Command failed"
  end
end