Sha256: 9ce56d77a35ae9df5e6ce60646cf523718b60b76ab8a6fd4b9d6bc7444b2007a

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

require 'svgcode/cli'
require 'tempfile'

guard :shell do
  watch(//) do |mod|
    ngc_file = Tempfile.new
    cli = Svgcode::CLI.new

    cli.invoke('parse', ['~/Desktop/azabache.svg'],
      out_path: ngc_file.path,
      comments: true
    )

    cli.invoke('post', [ngc_file.path])
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
svgcode-0.6.2 Guardfile
svgcode-0.6.1 Guardfile
svgcode-0.6.0 Guardfile