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
22 23 24 25 26 |
# File 'lib/modulesync/cli.rb', line 22 def activate config = { :command => 'hook' }.merge() config[:hook] = 'activate' ModuleSync.hook(config) end |
#deactivate ⇒ Object
29 30 31 32 33 |
# File 'lib/modulesync/cli.rb', line 29 def deactivate config = { :command => 'hook' }.merge() config[:hook] = 'deactivate' ModuleSync.hook(config) end |