Sha256: dd6807759f206c202170e619c2ed6c42219bcda07e74d492afc0acc4f173d5dd

Contents?: true

Size: 315 Bytes

Versions: 9

Compression:

Stored size: 315 Bytes

Contents

class RSUtils
  def self.mk_rs_cache_dir(prefix=nil)
    tmpdir = Dir.tmpdir
    _prefix = prefix || "cap-rightscale"
    begin
      path = "#{tmpdir}/#{_prefix}-#{ENV['USER']}-#{rand(0x100000000).to_s(36)}"
      Dir.mkdir(path, 0700)
    rescue Errno::EEXIST
      logger.warn(e)
      exit(1)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cap-rightscale-0.3.0 lib/cap-rightscale/utils/rs_utils.rb
cap-rightscale-0.2.6 lib/cap-rightscale/utils/rs_utils.rb
cap-rightscale-0.2.5 lib/cap-rightscale/utils/rs_utils.rb
cap-rightscale-0.2.4 lib/cap-rightscale/utils/rs_utils.rb
cap-rightscale-0.2.3 lib/cap-rightscale/utils/rs_utils.rb
cap-rightscale-0.2.2 lib/cap-rightscale/utils/rs_utils.rb
cap-rightscale-0.2.1 lib/cap-rightscale/utils/rs_utils.rb
cap-rightscale-0.2.0 lib/cap-rightscale/utils/rs_utils.rb
cap-rightscale-0.1.0 lib/cap-rightscale/utils/rs_utils.rb