Skip to content

Commit

Permalink
Fixed API call
Browse files Browse the repository at this point in the history
  • Loading branch information
thesp0nge committed Mar 28, 2014
1 parent 45599fa commit e37f899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -30,7 +30,7 @@ task :cve, :name do |t,args|
SRC_DIR = "./lib/codesake/dawn/kb/"
SPEC_DIR = "./spec/lib/kb/"

raise "### It seems that #{name} is already in Dawn knowledge base" unless Codesake::Dawn::KnowledgeBase.find(nil, name).nil?
raise "### It seems that #{name} is already in Dawn knowledge base" unless Codesake::Dawn::KnowledgeBase.new.find(nil, name).nil?
raise "### Invalid CVE title: #{name}" if name.nil? or name.empty? or /CVE-\d{4}-\d{4}/.match(name).nil?
raise "### No target directory: #{SRC_DIR}" unless Dir.exists?(SRC_DIR)
raise "### No rspec directory: #{SPEC_DIR}" unless Dir.exists?(SPEC_DIR)
Expand Down

0 comments on commit e37f899

Please sign in to comment.