aws-ec2 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b159b7648562e89bf4552a9f42b81ebdda0fca33d979c7f5ae6a5ef38f29ca7
4
- data.tar.gz: f3a261914d4442d75af1afd00f9ee7e1dd4e6bf2d155168ddc80b1fcbe2d8e61
3
+ metadata.gz: 2ae0142627fc2b449f8caec43ae66c0544fd8144d2457d814b369351c9b0825c
4
+ data.tar.gz: 5e1c6190b37d41e91e80d6c4f92064e4075bb33a173654d5b858c72c4f8cca98
5
5
  SHA512:
6
- metadata.gz: e6f2c2ccfe42c46ce64049ec6b04bb1bad648a252e6a7f071829cd4f8f52d97b4372a0c7889c6ead9726bc0d4b0f27acb9fc64bc8948e1f5f7c52ac2e3d63f8d
7
- data.tar.gz: d82ba0ed306f5024fb262d018fd9fe7a76b8a25ff242cc1a5a4c78d4edf122eb3b444625c45d256eaaf84d1be17ddd6ac7885c8eb0297b8c7f0b5c7b13ce8572
6
+ metadata.gz: c9e1b3007c14f25caf40bda48d94d705f28d5ae9c915f0dbf57756e24ef8fbd88feedece9f06e98f68d44839777668833e602be1e20c11f48f4518e46c22dac0
7
+ data.tar.gz: 52e55c58bd52eca7ae11b7a4e4c0608215d552887718cc961bad2d1a9466d74f8913ac7e22b1dcf2f6b4d1a2fec5f042a8a3927fb556dc4b01dcb4c20dfcfa5f
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.5.0]
7
+ - compile_scripts compiles both app/user-data and app/scripts
8
+
6
9
  ## [0.4.0]
7
10
  - aws-ec2 ami command
8
11
  - create: add --source-ami options
@@ -20,7 +20,7 @@ module AwsEc2
20
20
  Ami.new(options.merge(name: name)).run
21
21
  end
22
22
 
23
- desc "compile_scripts", "compiles app/scripts into tmp/app/scripts"
23
+ desc "compile_scripts", "compiles app/scripts and app/user-data to tmp folder"
24
24
  long_desc Help.text(:compile_scripts)
25
25
  def compile_scripts
26
26
  CompileScripts.new(options).compile
@@ -10,9 +10,14 @@ module AwsEc2
10
10
  end
11
11
 
12
12
  def compile
13
- puts "Compiling app/scripts to..."
14
13
  clean
15
- Dir.glob("#{AwsEc2.root}/app/scripts/**/*").each do |path|
14
+ compile_folder("scripts")
15
+ compile_folder("user-data")
16
+ end
17
+
18
+ def compile_folder(folder)
19
+ puts "Compiling app/#{folder}:"
20
+ Dir.glob("#{AwsEc2.root}/app/#{folder}/**/*").each do |path|
16
21
  next if File.directory?(path)
17
22
  result = erb_result(path)
18
23
  tmp_path = path.sub(%r{.*/app/}, "#{BUILD_ROOT}/app/")
@@ -20,7 +25,6 @@ module AwsEc2
20
25
  FileUtils.mkdir_p(File.dirname(tmp_path))
21
26
  IO.write(tmp_path, result)
22
27
  end
23
- puts "Compiled app/scripts."
24
28
  end
25
29
 
26
30
  def clean
@@ -1,3 +1,3 @@
1
1
  module AwsEc2
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen