Class: ModuleSync::CLI::Hook
- Inherits:
-
Thor
- Object
- Thor
- ModuleSync::CLI::Hook
- Defined in:
- lib/modulesync/cli.rb
Instance Method Summary collapse
Instance Method Details
#activate ⇒ Object
13 14 15 16 17 |
# File 'lib/modulesync/cli.rb', line 13 def activate config = { :command => 'hook' }.merge() config[:hook] = 'activate' ModuleSync.hook(config) end |
#deactivate ⇒ Object
20 21 22 23 24 |
# File 'lib/modulesync/cli.rb', line 20 def deactivate config = { :command => 'hook' }.merge() config[:hook] = 'deactivate' ModuleSync.hook(config) end |