Class: ModuleSync::CLI::Hook

Inherits:
Thor
  • Object
show all
Defined in:
lib/modulesync/cli.rb

Instance Method Summary collapse

Instance Method Details

#activateObject


13
14
15
16
17
# File 'lib/modulesync/cli.rb', line 13

def activate
  config = { :command => 'hook' }.merge(options)
  config[:hook] = 'activate'
  ModuleSync.hook(config)
end

#deactivateObject


20
21
22
23
24
# File 'lib/modulesync/cli.rb', line 20

def deactivate
  config = { :command => 'hook' }.merge(options)
  config[:hook] = 'deactivate'
  ModuleSync.hook(config)
end