Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Sep 26, 2012
1 parent 869c435 commit 1448563
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/add_service.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class AddService
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
domain = Domain.find(domain_name)
short_name = args.shift
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/add_template_record.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class AddTemplateRecord
def execute(args, options={})
def execute(args, options = {})
short_name = args.shift
record_name = args.shift
record_type = args.shift
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/apply_template.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ApplyTemplate
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
template_name = args.shift

Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/check_domain.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class CheckDomain
def execute(args, options={})
def execute(args, options = {})
name = args.shift
response = Domain.check(name)
puts "Check domain result for #{name}: #{response}"
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/clear_domain.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ClearDomain
def execute(args, options={})
def execute(args, options = {})
name = args.shift

records = Record.all(name)
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/create_contact.rb
Expand Up @@ -5,7 +5,7 @@ class CreateContact
#
# Args expected to be:
# [name:value name:value ...]
def execute(args, options={})
def execute(args, options = {})
attributes = {}
attributes['state_province_choice'] = 'S'
args.each do |arg|
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/create_domain.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class CreateDomain
def execute(args, options={})
def execute(args, options = {})
name = args.shift
domain = Domain.create(name)
puts "Created #{domain.name}"
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/create_record.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class CreateRecord
def execute(args, options={})
def execute(args, options = {})
name = args.shift
record_name = args.shift
record_type = args.shift
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/create_template.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class CreateTemplate
def execute(args, options={})
def execute(args, options = {})
name = args.shift
short_name = args.shift
description = args.shift unless args.empty?
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/delete_contact.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DeleteContact
def execute(args, options={})
def execute(args, options = {})
id = args.shift

contact = Contact.find(id)
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/delete_domain.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DeleteDomain
def execute(args, options={})
def execute(args, options = {})
name_or_id = args.shift

domain = Domain.find(name_or_id)
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/delete_record.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DeleteRecord
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
id = args.shift

Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/delete_template.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DeleteTemplate
def execute(args, options={})
def execute(args, options = {})
short_name = args.shift
template = Template.find(short_name)
template.delete
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/delete_template_record.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DeleteTemplateRecord
def execute(args, options={})
def execute(args, options = {})
short_name = args.shift
id = args.shift

Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/describe_certificate.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DescribeCertificate
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
certificate_id = args.shift
domain = Domain.find(domain_name)
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/describe_contact.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DescribeContact
def execute(args, options={})
def execute(args, options = {})
id = args.shift
contact = Contact.find(id)
puts "Contact: #{contact.name}:"
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/describe_domain.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DescribeDomain
def execute(args, options={})
def execute(args, options = {})
name = args.shift
domain = Domain.find(name)
puts "Domain #{domain.name}:"
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/describe_record.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DescribeRecord
def execute(args, options={})
def execute(args, options = {})
name = args.shift
id = args.shift
record = Record.find(name, id)
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/describe_service.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DescribeService
def execute(args, options={})
def execute(args, options = {})
short_name = args.shift
service = Service.find(short_name)
puts "\t#{service.name} (short: #{service.short_name}, id: #{service.id})"
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/describe_user.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class DescribeUser
def execute(args, options={})
def execute(args, options = {})
puts "Connecting to #{Client.base_uri}"
user = User.me
puts "User details:"
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_applied_services.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListAppliedServices
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
domain = Domain.find(domain_name)
services = domain.applied_services
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_available_services.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListAvailableServices
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
domain = Domain.find(domain_name)
services = domain.available_services
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_certificates.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListCertificates
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
domain = DNSimple::Domain.find(domain_name)
certificates = DNSimple::Certificate.all(domain)
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_contacts.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListContacts
def execute(args, options={})
def execute(args, options = {})
contacts = Contact.all
puts "Found #{contacts.length} contacts:"
contacts.each do |contact|
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_domains.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListDomains
def execute(args, options={})
def execute(args, options = {})
domains = Domain.all
puts "Found #{domains.length} domains:"
domains.each do |domain|
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_extended_attributes.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListExtendedAttributes
def execute(args, options={})
def execute(args, options = {})
tld = args.shift
extended_attributes = ExtendedAttribute.find(tld)
puts "Extended attributes: "
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_records.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListRecords
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift

records = Record.all(DNSimple::Domain.new(:name => domain_name))
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_services.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListServices
def execute(args, options={})
def execute(args, options = {})
services = Service.all
puts "Found #{services.length} services:"
services.each do |service|
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_template_records.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListTemplateRecords
def execute(args, options={})
def execute(args, options = {})
short_name = args.shift
template_records = TemplateRecord.all(short_name)
puts "Found #{template_records.length} records for #{short_name}"
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/list_templates.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class ListTemplates
def execute(args, options={})
def execute(args, options = {})
templates = Template.all
puts "Found #{templates.length} templates:"
templates.each do |template|
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/purchase_certificate.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class PurchaseCertificate
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
name = args.shift
contact_id = args.shift
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/register_domain.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class RegisterDomain
def execute(args, options={})
def execute(args, options = {})
name = args.shift
registrant = nil

Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/remove_service.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class RemoveService
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
domain = Domain.find(domain_name)
short_name = args.shift
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/submit_certificate.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class SubmitCertificate
def execute(args, options={})
def execute(args, options = {})
domain_name = args.shift
certificate_id = args.shift
approver_email = args.shift
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/transfer_domain.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class TransferDomain
def execute(args, options={})
def execute(args, options = {})
name = args.shift
registrant = {:id => args.shift}
authinfo = args.shift unless args.empty?
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/update_contact.rb
Expand Up @@ -5,7 +5,7 @@ class UpdateContact
#
# Args expected:
# id [name:value name:value ...]
def execute(args, options={})
def execute(args, options = {})
attributes = {}
id = args.shift
args.each do |arg|
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsimple/commands/update_record.rb
@@ -1,7 +1,7 @@
module DNSimple
module Commands
class UpdateRecord
def execute(args, options={})
def execute(args, options = {})
attributes = {}
domain_name = args.shift
id = args.shift
Expand Down

0 comments on commit 1448563

Please sign in to comment.