lib/makit/dotnet.rb in makit-0.0.41 vs lib/makit/dotnet.rb in makit-0.0.42
- old
+ new
@@ -8,11 +8,11 @@
`dotnet --version`
end
def self.new_project(template, name, output, args = "")
if Dir.exist? output
- puts " dotnet project ".colorize(:grey) + "#{name}".colorize(:green)
+ puts " "#{name} project exists".colorize(:gey)
else
"dotnet new #{template} --name #{name} --output #{output} #{args}".run
end
end
@@ -43,11 +43,11 @@
end
project_content = File.read(project_path)
if (!project_content.include?("\"#{package_name}\""))
"dotnet add #{project_path} package #{package_name}".run
else
- #puts " package ".colorize(:grey) + "#{package_name}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
+ puts " #{project_path} has package #{package_name}".colorize(:grey)
end
end
def self.add_packages(project_path, packages)
packages.each do |package|
@@ -72,10 +72,11 @@
reference_path = actual_reference_path
end
end
project_content = File.read(project_path)
if (project_content.include?(File.basename(reference_path)))
- puts " reference ".colorize(:grey) + "#{reference_path}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
+ puts " #{project_path} references #{reference_path}".colorize(:grey)
+ #puts " reference ".colorize(:grey) + "#{reference_path}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
else
"dotnet add #{project_path} reference #{reference_path}".run
end
end