lib/soca/plugins/mustache.rb in soca-0.2.0 vs lib/soca/plugins/mustache.rb in soca-0.3.0

- old
+ new

@@ -12,10 +12,10 @@ # * :files - Run these files through mustache. Can be an array of patterns # or a single file. The default is '*.mustache'. # * :vars - Additional variables to interpolate. By default the `env` and # `config` are interpolated. # - def run(options = {}) + def before_build file_patterns = options[:files] || '*.mustache' files = Dir[*[file_patterns].flatten] vars = { :env => pusher.env, :config => pusher.config