Sha256: 532dfb3bb8974b9091c51b605abf7e856a64b74b4966b13805e488cbd1f9ae5f
Contents?: true
Size: 882 Bytes
Versions: 2
Compression:
Stored size: 882 Bytes
Contents
require "colorize" require "fileutils" module Fling # Central utilities for Tahoe-LAFS setup module Setup module_function TAHOE_VERSION = "1.10.0" TAHOE_DIR = "allmydata-tahoe-#{TAHOE_VERSION}" TAHOE_ZIP = "#{TAHOE_DIR}.zip" TAHOE_SRC = "https://tahoe-lafs.org/source/tahoe-lafs/releases/#{TAHOE_ZIP}" # Note something important just happened def ohai(msg) STDOUT.puts "#{'***'.blue} #{msg.light_white}" end def run zip = "/tmp/#{TAHOE_ZIP}" dir = File.join(Dir.home, TAHOE_DIR) ohai "Downloading #{TAHOE_ZIP}" system "curl -o #{zip} #{TAHOE_SRC}" ohai "Extracting #{TAHOE_ZIP} into #{dir}" system "cd #{Dir.home} && unzip -q #{zip}" ohai "Configuring Tahoe-LAFS" system "cd #{dir} && python setup.py build" ohai "Tahoe-LAFS is ready to roll." end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fling-0.0.2 | lib/fling/setup.rb |
fling-0.0.1 | lib/fling/setup.rb |