Sha256: c716d576cee9c9743443ce03e7e09d5b116c72eac75beba68b4bdfe85f224a62

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

require "fileutils"

desc "Generate Vscode snippets of this gem"
namespace :qismo do
  task :generate_vscode_snippets do
    code_snippet_file = File.join(File.dirname(__FILE__), "..", "..", "vscode-snippet", "qismo.code-snippets")
    destination_folder = File.join(File.dirname(__FILE__), "..", "..", ".vscode")

    FileUtils.mkdir(destination_folder) unless Dir.exist?(destination_folder)
    FileUtils.cp(code_snippet_file, destination_folder)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qismo-0.17.7 lib/tasks/vscode-snippet.rake