mirror of
https://github.com/jimeh/skyhook.git
synced 2026-02-19 11:06:38 +00:00
17 lines
273 B
Ruby
17 lines
273 B
Ruby
class ActivateAction < Action
|
|
|
|
def default
|
|
puts "please specify project"
|
|
end
|
|
|
|
def method_missing(project, *args)
|
|
Projects.send(project).activate(*args)
|
|
Action.perms :ensure
|
|
end
|
|
|
|
def all
|
|
Projects.activate
|
|
Action.perms :ensure
|
|
end
|
|
|
|
end |