Sha256: 643db5fe131c90365d2916214defe07a44d57c4d65a0cc313e4b83e04239a522
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
require 'fileutils' project_name = read_project_name visibility = next_arg "Please specify one of: public, private" if visibility != 'public' and visibility != 'private' error 3, "Please specify one of: public, private" end dir = find_project_dir(project_name) if !File.exist?(dir) error 4, "Project not found" end File.open(File.join(dir, ".visibility"), "w") { |f| f << visibility << "\n" }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hubbard-0.0.18 | commands/set-visibility.rb |