lib/juicer/command/install.rb in juicer-0.2.6 vs lib/juicer/command/install.rb in juicer-1.0.0

- old
+ new

@@ -1,6 +1,6 @@ -require File.join(File.dirname(__FILE__), "util") +require "juicer/command/util" require "cmdparse" require "pathname" module Juicer module Command @@ -27,10 +27,12 @@ end end # Execute command # - def execute(args) + def execute(*args) + args.flatten! + if args.length == 0 raise ArgumentError.new('Please provide a library to install') end args.each do |lib|