mirror of
https://github.com/jimeh/skyhook.git
synced 2026-02-19 11:06:38 +00:00
initial import
This commit is contained in:
17
init/actions/active.rb
Normal file
17
init/actions/active.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class ActiveAction < Action
|
||||
|
||||
def default
|
||||
puts "please specify project"
|
||||
end
|
||||
|
||||
def method_missing(project, *args)
|
||||
puts Projects.send(project).status["active"]
|
||||
end
|
||||
|
||||
def all
|
||||
Projects.list.each do |name, project|
|
||||
puts "#{name.camelize}: #{project.status["active"]}"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user