aws-ec2 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/aws_ec2/cli.rb +1 -1
- data/lib/aws_ec2/compile_scripts.rb +7 -3
- data/lib/aws_ec2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ae0142627fc2b449f8caec43ae66c0544fd8144d2457d814b369351c9b0825c
|
4
|
+
data.tar.gz: 5e1c6190b37d41e91e80d6c4f92064e4075bb33a173654d5b858c72c4f8cca98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9e1b3007c14f25caf40bda48d94d705f28d5ae9c915f0dbf57756e24ef8fbd88feedece9f06e98f68d44839777668833e602be1e20c11f48f4518e46c22dac0
|
7
|
+
data.tar.gz: 52e55c58bd52eca7ae11b7a4e4c0608215d552887718cc961bad2d1a9466d74f8913ac7e22b1dcf2f6b4d1a2fec5f042a8a3927fb556dc4b01dcb4c20dfcfa5f
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/aws_ec2/cli.rb
CHANGED
@@ -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
|
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
|
-
|
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
|
data/lib/aws_ec2/version.rb
CHANGED