lib/infect/command.rb in infect-0.0.5 vs lib/infect/command.rb in infect-1.0.0
- old
+ new
@@ -5,22 +5,23 @@
class Command
include Infect::Colorize
def self.build(command, arg ,opts)
case command.to_sym
- when :bundle
- Bundle.new(arg, opts)
+ when :plugin
+ Plugin.new(arg, opts)
+ when :bundle, :package
+ Package.new(arg, opts)
else
$stderr.puts "WARNING: #{command} is not a valid command, ignorning"
end
end
protected
def mkdir(path)
expanded_path = File.expand_path(path)
unless File.directory?(expanded_path)
- notice "Making dir #{path}"
FileUtils.mkdir_p(expanded_path)
end
end
def chdir(path)