Sha256: 1939a94caca4c98a18103b553967968e06a5340f5e45c74047254bafe34cf2f5
Contents?: true
Size: 427 Bytes
Versions: 7
Compression:
Stored size: 427 Bytes
Contents
require 'fileutils' project_name = read_project_name visibility = next_arg "Please specify one of: public, private" if visibility != 'public' and visibility != 'private' $stderr.puts "Please specify one of: public, private" exit 3 end dir = find_project_dir(project_name) if !File.exist?(dir) $stderr.puts "Project not found" exit 4 end File.open(File.join(dir, ".visibility"), "w") { |f| f << visibility << "\n" }
Version data entries
7 entries across 7 versions & 1 rubygems