Sha256: e00daf55b1dd6b547af11a277fbba64441f5035817696853d28a45f03aebe1ea

Contents?: true

Size: 342 Bytes

Versions: 12

Compression:

Stored size: 342 Bytes

Contents

def create_dir(dir)   # FIXME move later
  cmd = "mkdir -p #{dir} >/dev/null 2>&1"
  result = system(cmd) 
  raise "Can't create #{dir}" unless result
end

def interpolate(str)
  wrap = "<<-EOS\n#{str}\nEOS"
  eval wrap
end

def error(err)  # FIXME - this is duplicated
  str = "\n  Error: #{err}"
  puts str
  puts err.backtrace  # [0]
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
runeblog-0.0.81 lib/helpers-blog.rb
runeblog-0.0.79 lib/helpers-blog.rb
runeblog-0.0.78 lib/helpers-blog.rb
runeblog-0.0.77 lib/helpers-blog.rb
runeblog-0.0.76 lib/helpers-blog.rb
runeblog-0.0.75 lib/helpers-blog.rb
runeblog-0.0.74 lib/helpers-blog.rb
runeblog-0.0.73 lib/helpers-blog.rb
runeblog-0.0.72 lib/helpers-blog.rb
runeblog-0.0.71 lib/helpers-blog.rb
runeblog-0.0.70 lib/helpers-blog.rb
runeblog-0.0.69 lib/helpers-blog.rb