
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
DSLimple is a tool to manage DNSimple.
It defines the state of DNSimple using DSL, and updates DNSimple according to DSL.
Add this line to your application's Gemfile:
gem 'dslimple'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dslimple
export DSLIMPLE_EMAIL="..."
export DSLIMPLE_API_TOKEN="..."
dslimple export -f Domainfile
vi Domainfile
dslimple apply --dry-run -f Domainfile
dslimple apply --yes -f Domainfile
$ dslimple help
Commands:
dslimple apply # Apply domain specifications
dslimple export # Export domain specifications
dslimple help [COMMAND] # Describe available commands or one specific command
Options:
-e, [--email=EMAIL] # Your E-Mail address
-t, [--api-token=API_TOKEN] # Your API token
-dt, [--domain-token=DOMAIN_TOKEN] # Your Domain API token
[--sandbox], [--no-sandbox] # Use sandbox API(at sandbox.dnsimple.com)
# Default: true
[--debug], [--no-debug]
$ dslimple help apply
Usage:
dslimple apply
Options:
-o, [--only=one two three] # Specify domains for apply
-d, [--dry-run], [--no-dry-run]
-f, [--file=FILE] # Source Domainfile path
# Default: Domainfile
[--addition], [--no-addition] # Add specified records
# Default: true
[--modification], [--no-modification] # Modify specified records
# Default: true
[--deletion], [--no-deletion] # Delete unspecified records
# Default: true
-y, [--yes], [--no-yes] # Do not confirm on before apply
-e, [--email=EMAIL] # Your E-Mail address
-t, [--api-token=API_TOKEN] # Your API token
-dt, [--domain-token=DOMAIN_TOKEN] # Your Domain API token
[--sandbox], [--no-sandbox] # Use sandbox API(at sandbox.dnsimple.com)
# Default: true
[--debug], [--no-debug]
Apply domain specifications
$ dslimple help export
Usage:
dslimple export
Options:
-o, [--only=one two three] # Specify domains for export
-f, [--file=FILE] # Export Domainfile path
# Default: Domainfile
-d, [--dir=DIR] # Export directory path for split
# Default: ./domainfiles
-s, [--split], [--no-split] # Export with split by domains
-m, [--modeline], [--no-modeline] # Export with modeline for Vim
[--soa-and-ns], [--no-soa-and-ns] # Export without SOA and NS records
-e, [--email=EMAIL] # Your E-Mail address
-t, [--api-token=API_TOKEN] # Your API token
-dt, [--domain-token=DOMAIN_TOKEN] # Your Domain API token
[--sandbox], [--no-sandbox] # Use sandbox API(at sandbox.dnsimple.com)
# Default: true
[--debug], [--no-debug]
Export domain specifications
The following defines are all the same meaning
domain "example.com" do
a_record ttl: 3600 do
"0.0.0.0"
end
record type: :a, ttl: 3600 do
"0.0.0.0"
end
a_record do
ttl 3600
content "0.0.0.0"
end
end
DSLimple's DSL works on ruby.
require 'open-uri'
require 'json'
domain "example.internal" do
JSON.parse(open('http://my.internal.service/records.json', &:read)).each do |record_data|
recored record_data['name'], record_data['options'] { record_data['content'] }
end
end
Bug reports and pull requests are welcome on GitHub at https://github.com/zeny-io/dslimple.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that dslimple demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.