class Guard::ForgeAssets

Public Class Methods

new(watchers=[], options={}) click to toggle source
Calls superclass method
# File lib/guard/forge/assets.rb, line 7
def initialize(watchers=[], options={})
  super
end

Public Instance Methods

run_all() click to toggle source

Called on Ctrl-\ signal This method should be principally used for long action like running all specs/tests/…

# File lib/guard/forge/assets.rb, line 18
def run_all
  UI.info "Rebuilding all assets"
  ::Forge::Guard.builder.clean_images
  ::Forge::Guard.builder.build_assets
end
run_on_change(paths) click to toggle source

Called on file(s) modifications

# File lib/guard/forge/assets.rb, line 25
def run_on_change(paths)
  UI.info "Assets have changed, rebuilding..."
  ::Forge::Guard.builder.clean_images
  ::Forge::Guard.builder.build_assets
end
start() click to toggle source
# File lib/guard/forge/assets.rb, line 11
def start
  UI.info "Building all assets"
  ::Forge::Guard.builder.build_assets
end