Sha256: dc43a9bf7408cb4fa7ffac1f686eacff10eeac9c7ec321bc7ccd6d3bf65b82d2

Contents?: true

Size: 242 Bytes

Versions: 4

Compression:

Stored size: 242 Bytes

Contents

require 'fileutils'

# a bunch of things that should never be called in testing due to side effects
module Railsthemes
  class Safe
    def self.system_call s
      `#{s}`
    end

    def self.log_and_abort s
      abort s
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
railsthemes-1.0.3 lib/railsthemes/safe.rb
railsthemes-1.0.2 lib/railsthemes/safe.rb
railsthemes-1.0.1 lib/railsthemes/safe.rb
railsthemes-1.0.0 lib/railsthemes/safe.rb