Sha256: 0b9dc9ac47635f562107abbda1bcced08e56ed479d58e28ddbc3ac25aef525a1

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

CONF_DIR = File.join( Dir.home, '.rbld' )
RBLD_CONF = File.expand_path( 'rebuild.conf', CONF_DIR )

CONF_CONTENTS = <<TEXT
#This is a sample config file for Rebuild
#Uncomment and adjust following lines
#according to your registry configuration

#For Docker registries
#REMOTE_NAME=origin
#REMOTE_TYPE_origin="docker"
#REMOTE_origin="10.0.110.110:5000"

#For native Rebuild registry
#REMOTE_NAME=origin
#REMOTE_TYPE_origin="rebuild"
#REMOTE_origin="/mnt/rbld_regsitry_root"
TEXT

task default: [RBLD_CONF]

file RBLD_CONF do
  FileUtils.mkdir_p( CONF_DIR )

  unless File.exist?( RBLD_CONF )
    open(RBLD_CONF, 'w') do |f|
      f.write CONF_CONTENTS
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rbld-1.2.0 tools/rebuild-conf/Rakefile
rbld-1.1.0 tools/rebuild-conf/Rakefile