Sha256: 623c1e5e649bad7005faec60c623d5b9eb9ed3d5ab9642dd056cfdf61e33d605
Contents?: true
Size: 469 Bytes
Versions: 6
Compression:
Stored size: 469 Bytes
Contents
require 'contracts' require 'highline/import' require 'terminal-announce' module InteractiveSetup module Workspace def self.setup path = ask 'Enter the path to your workspace.' actual_path = File.expand_path path Announce.warning "No path given, assuming #{actual_path}" if path.empty? if Dir.exist? actual_path actual_path else Announce.failure 'Directory does not exist.' setup end end end end
Version data entries
6 entries across 6 versions & 1 rubygems