Class: Rexer::Extension::Theme::Install

Inherits:
Action
  • Object
show all
Defined in:
lib/rexer/extension/theme/install.rb

Instance Method Summary collapse

Methods inherited from Action

#initialize

Constructor Details

This class inherits a constructor from Rexer::Extension::Theme::Action

Instance Method Details

#callObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/rexer/extension/theme/install.rb', line 5

def call
  broadcast(:started, "Install #{theme.name}")

  if theme.exist?
    broadcast(:skipped, "Already exists")
    return
  end

  load_from_source
  call_installed_hook

  broadcast(:completed)
end