Class: GitRoom::Admin
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
Instance Method Summary collapse
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
9 10 11 |
# File 'lib/gitroom/admin.rb', line 9 def list @list end |
Instance Method Details
#delete ⇒ Object
19 20 21 |
# File 'lib/gitroom/admin.rb', line 19 def delete @list.each { |x| x.destroy } end |
#find(regex_string = '') ⇒ Object
11 12 13 |
# File 'lib/gitroom/admin.rb', line 11 def find(regex_string = '') @list = Node.where 'path ~ ?', regex_string end |
#logs! ⇒ Object
27 28 29 30 31 |
# File 'lib/gitroom/admin.rb', line 27 def logs! res = logs Log.destroy_all res end |
#pluck ⇒ Object
15 16 17 |
# File 'lib/gitroom/admin.rb', line 15 def pluck @list.pluck :path end |