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/activate.rb
Normal file
17
init/actions/activate.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user