Skip to content

Commit

Permalink
feat: begin adding Amazon EBS builder component
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwalsh committed Mar 20, 2020
1 parent 0e3f888 commit f0fadda
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png" />
<HelloWorld msg="Welcome to Your Vue.js App" />
<AmazonEBS />
</div>
</template>

<script>
import HelloWorld from "./components/HelloWorld.vue";
import AmazonEBS from "./components/AmazonEBS.vue";
export default {
name: "App",
components: {
HelloWorld
AmazonEBS
}
};
</script>
Expand Down
30 changes: 30 additions & 0 deletions src/components/AmazonEBS.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<template>
<form v-on:submit.prevent>
<input v-model="ami_name" type="text" />
<button v-on:click="generate">Generate</button>
</form>
</template>

<script>
export default {
data: function() {
return {
ami_name: "",
template: {
builders: []
}
};
},
methods: {
generate: function(event) {
console.log(event);
let builder = {
type: "amazon-ebs"
};
builder.ami_name = this.ami_name;
this.template.builders.push(builder);
console.log(this.template);
}
}
};
</script>

0 comments on commit f0fadda

Please sign in to comment.