Sha256: 449d29806276303d795faa21f015d81f550e03f741d5f079ba2b3a8cec6375bf

Contents?: true

Size: 374 Bytes

Versions: 3

Compression:

Stored size: 374 Bytes

Contents

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

CONF_CONTENTS = <<TEXT
#REMOTE_NAME=origin
#REMOTE_origin="10.0.110.110:5000"
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

3 entries across 3 versions & 1 rubygems

Version Path
rbld-1.0.2 tools/rebuild-conf/Rakefile
rbld-1.0.1 tools/rebuild-conf/Rakefile
rbld-1.0.0 tools/rebuild-conf/Rakefile