Sha256: 383e3d1ce1e93777bba3024d79c854bf9dfc902a37f89b1485c59a5905b3edd7

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

require 'releases/version'
require 'releases/plugin_helper'
require 'releases/dsl/releases_dsl'

module Releases

  def self.post_build_hook(built_entity, generated_files_path)
    # This is an example of what you could do after files are generated, ie pretty much anything...
    case built_entity.type
    when :releases_entity
      generated_file = File.join generated_files_path, 'message.txt'
      puts File.readlines(generated_file)
    else
      raise PowerStencil::Error, 'Plugin releases doesnt know how handle the build of a releases_entity entity type !'
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
psplugin_releases-0.1.1 lib/releases.rb