Sha256: 2dc0b005f2951ebdd671e167c67c9b2470b7aa2bfdb5cc1cfb898c298c205b31
Contents?: true
Size: 586 Bytes
Versions: 10
Compression:
Stored size: 586 Bytes
Contents
module DNSimple module Commands class TemplateRecordCreate def execute(args, options = {}) short_name = args.shift record_name = args.shift record_type = args.shift content = args.shift ttl = args.shift template = Template.find(short_name) record = TemplateRecord.create(template.short_name, record_name, record_type, content, :ttl => ttl, :prio => options[:prio]) puts "Created #{record.record_type} with content '#{record.content}' record for template #{template.name}" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems