dev 1.0.176 → 1.0.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dev/Database.rb +6 -0
- metadata +1 -1
data/lib/dev/Database.rb
CHANGED
@@ -42,6 +42,12 @@ class Database
|
|
42
42
|
@db.execute("insert or replace into Branches (Name,Uri) VALUES ('#{name}','#{uri}');")
|
43
43
|
end
|
44
44
|
|
45
|
+
def has_result(h)
|
46
|
+
results=get_results({:machine=>h[:machine],:user=>h[:user],start_time=>h[:start_time]})
|
47
|
+
return true if results.length > 0
|
48
|
+
return false
|
49
|
+
end
|
50
|
+
|
45
51
|
def add_result(h)
|
46
52
|
columns=""
|
47
53
|
values=""
|