Sha256: cc500d9a2257306e0c30cd8f66a16c3e4ddac9b11a8fc2d375f1b5e2fce3523d
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
module Snake class ParseGenerator < Rails::Generators::Base require_relative '../../snake.rb' require 'rails/generators' def parse vars = Snake::Parser.parse(File.join(Rails.root, JSON_PATH)) Snake::Writer.write(vars) inject_into_file File.join(Rails.root, STYLES_PATH), after: '@import "bootstrap-sprockets";' do <<-INSERT @import "snake_vars"; INSERT end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
snake-1.0.0 | lib/generators/snake/parse_generator.rb |
snake-0.0.5 | lib/generators/snake/parse_generator.rb |