lib/terraforming/dnsimple/cli.rb in terraforming-dnsimple-0.1.0 vs lib/terraforming/dnsimple/cli.rb in terraforming-dnsimple-0.1.1
- old
+ new
@@ -1,12 +1,12 @@
module Terraforming
module DNSimple
class CLI < Thor
def self.cli_options
option :tfstate, type: :boolean
- option :user_name, type: :string
- option :api_token, type: :string
+ option :user, type: :string
+ option :token, type: :string
end
desc "dnsr", "DNSimple Record"
cli_options
def dnsr
@@ -14,10 +14,10 @@
end
private
def execute(klass, options)
- client = Dnsimple::Client.new(username: options[:user_name], api_token: options[:api_token])
+ client = Dnsimple::Client.new(username: options[:user], api_token: options[:token])
puts options[:tfstate] ? klass.tfstate(client) : klass.tf(client)
end
end
end
end