Sha256: 43deb575536197823cf2690317be945415435a8c4c771199e64a8e733aa7cdcc
Contents?: true
Size: 537 Bytes
Versions: 2
Compression:
Stored size: 537 Bytes
Contents
module StartX class Project def initialize @starters = YAML.load(File.open(Dir.home + "/.startx" )) handle_args end private def handle_args _err = "Specify a project or edit your config." if ARGV.count > 1 run(ARGV[1]) elsif ARGV.count == 1 ARGV.first == "project" ? (puts _err) : (run(ARGV[0])) else puts _err end end def run(key) %x(git clone #{@starters[key]['url']}) system "#{@starters[key]['scripts']}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
start-x-0.0.3 | lib/start_x/project.rb |
start-x-0.0.2 | lib/start_x/project.rb |