dslimple 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/dslimple/cli.rb +4 -4
- data/lib/dslimple/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbf7f4149dcbade896ca6a2e726c8a37fbd544db
|
4
|
+
data.tar.gz: 972fd40427086e75455b684a1db193df36fe2870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c13675d9aa205ddd94370d156146930cfa0ed9e8d93008397936c25f7660d557ddf4e91e662868c82d4530943ba7f68565edc63494f46f61bde694bbf2eba0dd
|
7
|
+
data.tar.gz: c0ddde8ee688d609710d89d7d11e38a211203bac8ba76e29a34e4a91c5d6c5b6b2f129530e9c30036c6807793ef7925dc471cbc9479873022d39b6f03447993d
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# DSLimple
|
2
2
|
|
3
|
+
![After DSLimple](http://zeny.io/blog/2016/02/14/dslimple-v1/after-dslimple.png)
|
4
|
+
|
3
5
|
__DSLimple__ is a tool to manage [DNSimple](https://dnsimple.com/).
|
4
6
|
|
5
7
|
It defines the state of DNSimple using DSL, and updates DNSimple according to DSL.
|
@@ -23,8 +25,8 @@ Or install it yourself as:
|
|
23
25
|
## Usage
|
24
26
|
|
25
27
|
```shell
|
26
|
-
export
|
27
|
-
export
|
28
|
+
export DSLIMPLE_EMAIL="..."
|
29
|
+
export DSLIMPLE_API_TOKEN="..."
|
28
30
|
dslimple export -f Domainfile
|
29
31
|
vi Domainfile
|
30
32
|
dslimple apply --dry-run -f Domainfile
|
data/lib/dslimple/cli.rb
CHANGED
@@ -12,7 +12,7 @@ class Dslimple::CLI < Thor
|
|
12
12
|
class_option :email, type: :string, aliases: %w(-e), desc: 'Your E-Mail address'
|
13
13
|
class_option :api_token, type: :string, aliases: %w(-t), desc: 'Your API token'
|
14
14
|
class_option :domain_token, type: :string, aliases: %w(-dt), desc: 'Your Domain API token'
|
15
|
-
class_option :sandbox, type: :boolean, default: ENV['
|
15
|
+
class_option :sandbox, type: :boolean, default: ENV['DSLIMPLE_ENV'] == 'test', desc: 'Use sandbox API(at sandbox.dnsimple.com)'
|
16
16
|
class_option :debug, type: :boolean, default: false
|
17
17
|
|
18
18
|
desc 'export', 'Export domain specifications'
|
@@ -52,9 +52,9 @@ class Dslimple::CLI < Thor
|
|
52
52
|
|
53
53
|
def api_client
|
54
54
|
@api_client ||= Dnsimple::Client.new(
|
55
|
-
username: options[:email] || ENV['
|
56
|
-
api_token: options[:api_token] || ENV['
|
57
|
-
domain_api_token: options[:domain_token] || ENV['
|
55
|
+
username: options[:email] || ENV['DSLIMPLE_EMAIL'],
|
56
|
+
api_token: options[:api_token] || ENV['DSLIMPLE_API_TOKEN'],
|
57
|
+
domain_api_token: options[:domain_token] || ENV['DSLIMPLE_DOMAIN_TOKEN'],
|
58
58
|
api_endpoint: options[:sandbox] ? SANDBOX_API_ENDPOINT : nil,
|
59
59
|
user_agent: USER_AGENT
|
60
60
|
)
|
data/lib/dslimple/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dslimple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Kusano
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|