lib/start_x/project.rb in start-x-0.0.1 vs lib/start_x/project.rb in start-x-0.0.2
- old
+ new
@@ -1,11 +1,9 @@
module StartX
class Project
def initialize
- path = File.join(File.dirname(File.expand_path(__FILE__)), 'config')
- @starters = YAML.load(File.open(path + "/starters.yaml" ))
-
+ @starters = YAML.load(File.open(Dir.home + "/.startx" ))
handle_args
end
private
@@ -20,9 +18,10 @@
end
end
def run(key)
- %x(git clone #{@starters[key]})
+ %x(git clone #{@starters[key]['url']})
+ system "#{@starters[key]['scripts']}"
end
end
end