Class: MagLove::Commands::Main

Inherits:
Base
  • Object
show all
Defined in:
lib/maglove/commands/main.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Helper::LogHelper

#debug, #error, #error!, #info, #logger

Constructor Details

This class inherits a constructor from MagLove::Commands::Base

Instance Method Details

#compileObject



16
17
18
19
20
21
22
23
# File 'lib/maglove/commands/main.rb', line 16

def compile
  Workspace::Dir.new(Dir.pwd, "src/themes").children("*").each do |dir|
    theme = dir.name
    info("COMPILING THEME #{theme}")
    invoke(Assets, :compile, [], theme: theme)
    reset_command_invocations(Assets)
  end
end