Class: ModuleSync::CLI::Hook
- Inherits:
-
Thor
- Object
- Thor
- Thor
- ModuleSync::CLI::Hook
show all
- Defined in:
- lib/modulesync/cli.rb
Instance Method Summary
collapse
Methods inherited from Thor
#_invalid_command_call, exit_on_failure?
Instance Method Details
#activate ⇒ Object
24
25
26
27
28
|
# File 'lib/modulesync/cli.rb', line 24
def activate
config = { :command => 'hook' }.merge(options)
config[:hook] = 'activate'
ModuleSync.hook(config)
end
|
#deactivate ⇒ Object
31
32
33
34
35
|
# File 'lib/modulesync/cli.rb', line 31
def deactivate
config = { :command => 'hook' }.merge(options)
config[:hook] = 'deactivate'
ModuleSync.hook(config)
end
|