toquen 2.0.0 → 2.0.1
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/lib/toquen/capistrano.rb +8 -0
- data/lib/toquen/local_writer.rb +6 -6
- data/lib/toquen/templates/gitignore +3 -0
- data/lib/toquen/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ffd59553ea2c724931ed5523bc8677f88a366bf
|
|
4
|
+
data.tar.gz: 5ed4ecaa74bc4350839d094604decbdcef8d0e69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eaf257bfcd85e2ed470997d92a89235aa914c56ba28870679f0420dd690b2fcb0784f1bfbab4b2fdcd0055fac69c0f2b3fc0f10c133c01ea9ade2e858ed2bb05
|
|
7
|
+
data.tar.gz: a657f4de01aa9b4ec3ddebf4df06f865565bcfe072a8e9eb5be0b46e5d194735ea79946f75c939389dd2abaad908662f92871144d5afec84606c7a2c38efd7d1
|
data/lib/toquen/capistrano.rb
CHANGED
|
@@ -230,6 +230,14 @@ task :toquen_install do
|
|
|
230
230
|
puts "Initializing config/deploy.rb configuration file..."
|
|
231
231
|
FileUtils.cp File.expand_path("../templates/deploy.rb", __FILE__), 'config/deploy.rb'
|
|
232
232
|
end
|
|
233
|
+
gipath = File.expand_path("../templates/gitignore", __FILE__)
|
|
234
|
+
if not File.exists?('.gitignore')
|
|
235
|
+
puts "Initializing .gitignore file..."
|
|
236
|
+
FileUtils.cp gipath, '.gitignore'
|
|
237
|
+
else
|
|
238
|
+
puts "You already have a .gitignore, consider adding these files to it:"
|
|
239
|
+
puts File.read(gipath)
|
|
240
|
+
end
|
|
233
241
|
end
|
|
234
242
|
|
|
235
243
|
desc "Show all information about EC2 instances"
|
data/lib/toquen/local_writer.rb
CHANGED
|
@@ -6,12 +6,12 @@ module Toquen
|
|
|
6
6
|
existing = File.exists?(path) ? JSON.parse(File.read(path)) : {}
|
|
7
7
|
open(path, 'w') do |f|
|
|
8
8
|
node = {
|
|
9
|
-
name
|
|
10
|
-
chef_environment
|
|
11
|
-
normal
|
|
12
|
-
run_list
|
|
13
|
-
}
|
|
14
|
-
f.write JSON.pretty_generate(node)
|
|
9
|
+
'name' => details[:name],
|
|
10
|
+
'chef_environment' => details[:environment],
|
|
11
|
+
'normal' => { toquen: details },
|
|
12
|
+
'run_list' => details[:roles].map { |r| "role[#{r}]" }
|
|
13
|
+
}
|
|
14
|
+
f.write JSON.pretty_generate(existing.merge(node))
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
data/lib/toquen/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: toquen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Muller
|
|
@@ -124,6 +124,7 @@ files:
|
|
|
124
124
|
- lib/toquen/local_writer.rb
|
|
125
125
|
- lib/toquen/stunning.rb
|
|
126
126
|
- lib/toquen/templates/deploy.rb
|
|
127
|
+
- lib/toquen/templates/gitignore
|
|
127
128
|
- lib/toquen/templates/ubuntu_bootstrap.erb
|
|
128
129
|
- lib/toquen/version.rb
|
|
129
130
|
- toquen.gemspec
|