nx-yaml

Nx yaml tools.

installation

# from gem
gem 'nx-yaml'
# from git
gem 'nx-yaml', git: '[email protected]:afeiship/nx-yaml.git'

usage

Nx::Yaml.load('./template.yml', { name: 'my-template', description: 'Awesome template'})

template.yml

name: nx-yml
version: 0.1.0
env: 
  home: <%= ENV["HOME"] %>
host: <%= host %>
{
    "name"=>"nx-yml", 
    "version"=>"0.1.0", 
    "env"=>{
        "home"=>"/Users/aric.zheng"
    }, 
    "host"=>"0.0.0.0"
}

build/publish

# build
gem build nx-yaml.gemspec

# publish
gem push nx-yaml-0.1.0.gem

rspec