lib/devinstall/cli.rb in devinstall-1.1.0 vs lib/devinstall/cli.rb in devinstall-1.2.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'devinstall/pkg' +require 'devinstall/package' require 'getopt/long' require 'devinstall/settings' require 'commander/import' module Cli @@ -35,11 +35,11 @@ load_defaults unless options.config type = options.type ? options.type.to_sym : config.defaults(:type) env = options.env ? options.env.to_sym : config.defaults(:env) args.each do |p| - pk=Devinstall::Pkg.new(p, type, env) + pk=Devinstall::Package.new(p, type, env) pk.build end end end @@ -49,11 +49,11 @@ load_defaults unless options.config type = options.type ? options.type.to_sym : config.defaults(:type) env = options.env ? options.env.to_sym : config.defaults(:env) args.each do |p| - pk=Devinstall::Pkg.new(p, type, env) + pk=Devinstall::Package.new(p, type, env) pk.build pk.install end end end @@ -64,11 +64,11 @@ load_defaults unless options.config type = options.type ? options.type.to_sym : config.defaults(:type) env = options.env ? options.env.to_sym : config.defaults(:env) args.each do |p| - pk=Devinstall::Pkg.new(p, type, env) + pk=Devinstall::Package.new(p, type, env) pk.run_tests end end end @@ -78,17 +78,15 @@ load_defaults unless options.config type = options.type ? options.type.to_sym : config.defaults(:type) env = options.env ? options.env.to_sym : config.defaults(:env) args.each do |p| - pk=Devinstall::Pkg.new(p, type, env) + pk=Devinstall::Package.new(p, type, env) pk.build pk.run_tests pk.upload end end end end - -__END__