mirror of
https://github.com/jimeh/skyhook.git
synced 2026-02-19 11:06:38 +00:00
17 lines
314 B
Ruby
17 lines
314 B
Ruby
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 |