Skip to content

Commit

Permalink
Merge pull request #41 from radify/set-aws-keys-during-amendation
Browse files Browse the repository at this point in the history
Saves AWS keys for amend Q/A + Boilerplate Stuff
  • Loading branch information
jfmercer committed Aug 24, 2015
2 parents 2569a43 + 0107868 commit 631ca46
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 0.1.4 - 2015-08-24
* Adds devDependency badge to README
* Fix
* The emendation dialogue now offers the AWS keys entered
during the first Q&A as the default values

## 0.1.3 - 2015-08-20
* Additions
* A `CHANGELOG`
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Travis Build Status](https://travis-ci.org/radify/radiian.svg)](https://travis-ci.org/radify/radiian?branch=master)
[![npm version](https://badge.fury.io/js/radiian.svg)](http://npmjs.com/package/radiian)
[![Dependency Status](https://david-dm.org/radify/radiian.svg)](https://david-dm.org/radify/radiian)
[![devDependency Status](https://david-dm.org/radify/radiian/dev-status.svg)](https://david-dm.org/radify/radiian#info=devDependencies)

# Radiian

Expand Down
5 changes: 3 additions & 2 deletions lib/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
type: 'input',
name: 'appName',
message: function() {
// This clears the screen
process.stdout.write('\u001b[2J\u001b[0;0H');
return 'What is the name of your application?';
},
Expand Down Expand Up @@ -313,7 +314,7 @@
}, {
type: 'input',
name: 'aws_key',
message: 'What is your AWS Access Key?',
message: 'What is your AWS Access Key (e.g. AKIAIOSFODNN7EXAMPLE)?',
validate: function(value) {
var regex = regexes.awsKey;

Expand All @@ -324,7 +325,7 @@
}, {
type: 'input',
name: 'aws_secret_key',
message: 'What is your AWS Secret Access Key?',
message: 'What is your AWS Secret Access Key (e.g. wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY)?',
validate: function(value) {
var regex = regexes.awsSecret;
// This regex is essentially the same as the above, but it looks for 40 character,
Expand Down
8 changes: 3 additions & 5 deletions lib/radiian-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@
if (!confirmation.confirm) {
// load existing answers as defaults into questions so user is modifying,
// not starting from scratch
for (var i = 0; i < questions.length; i++) {
if (questions[i].default) {
questions[i].default = answers[questions[i].name];
}
}
questions.map(function(question) {
question.default = answers[question.name];
});
go(questions);
} else {
submittedAnswers = answers;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "radiian",
"version": "0.1.3",
"version": "0.1.4",
"description": "Radiian generates an Ansible playbook for immutable infrastructure with AWS.",
"bin": "lib/radiian.js",
"main": "lib/radiian.js",
Expand Down

0 comments on commit 631ca46

Please sign in to comment.