lib/tasks/setup.rb in dev-2.1.58 vs lib/tasks/setup.rb in dev-2.1.59

- old
+ new

@@ -11,23 +11,15 @@ def initialize value=nil env=value if value.kind_of? Environment end def update - puts "Setup.update" if Environment.default.debug? env=Environment.new if env.nil? - add_quiet 'bundle install' if File.exists? 'Gemfile' - #add Command.new( { :input => 'bundle install', :quiet => true}) if(File.exists?('Gemfile')) - - #['bin','data','log','make','publish','test'].each{|dir| - # add "<%FileUtils.mkdir('#{Environment.default.devroot}/#{dir}')%>" if !File.exists? "#{Environment.dev_root}/#{dir}" - #} Dir.glob('*.gemspec').each{|gemspec_file| add_quiet "<%Gemspec.update('#{gemspec_file}')%>" - #add Command.new( { :input => "<%Gemspec.update('#{gemspec_file}')%>", :quiet => true} ) } if(Dir.glob('**/packages.config').length > 0) Dir.glob('*.sln').each{|sln_file| add_quiet "nuget restore #{sln_file}" @@ -36,11 +28,11 @@ if(File.exists?('project.json')) add_quiet "dotnet restore" end - puts 'Setup checking SVN_EXPORTS...' if env.debug? + #puts 'Setup checking SVN_EXPORTS...' if env.debug? if(defined?(SVN_EXPORTS)) SVN_EXPORTS.each{|k,v| dest="#{Command.dev_root}/dep/#{k}" if(!File.exists?(dest)) puts "#{Command.dev_root}/dep/#{k} does not exists" if env.debug? @@ -58,11 +50,11 @@ else puts "#{Command.dev_root}/dep/#{k} exists." if env.debug? end } else - puts 'SVN_EXPORTS is not defined' if env.debug? + #puts 'SVN_EXPORTS is not defined' if env.debug? end if(defined?(GIT_EXPORTS)) GIT_EXPORTS.each{|k,v| directory = "#{Command.dev_root}/dep/#{k}" @@ -78,11 +70,11 @@ end } end if(defined?(VERSION)) - puts "updating nuspec files for VERSION #{VERSION}" if env.debug? + #puts "updating nuspec files for VERSION #{VERSION}" if env.debug? Dir.glob('*.nuspec').each{|nuspec| current_version=IO.read(nuspec).scan(/<version>[\d.]+<\/version>/)[0] puts "#{nuspec} current version=#{current_version}" if env.debug? if(current_version.include?('<version>')) target_version="<version>#{VERSION}</version>" @@ -115,7 +107,8 @@ end rescue end } end + log_debug_info("Setup") end end \ No newline at end of file