toquen 2.0.0 → 2.0.1

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
  SHA1:
3
- metadata.gz: 03245820adba3a998f96cd66ced0c2a9613b891a
4
- data.tar.gz: 3794fb563b8e172655e5d3829de4dd4c78c8fb3f
3
+ metadata.gz: 6ffd59553ea2c724931ed5523bc8677f88a366bf
4
+ data.tar.gz: 5ed4ecaa74bc4350839d094604decbdcef8d0e69
5
5
  SHA512:
6
- metadata.gz: b06c9e073d2cbd3dad11ab8525e946a9e6196819e43b199cf386187026f5b4c763029dc47c018cb798a72d1c33fcd6455f5ffab361b4aa029c331a23a26a142c
7
- data.tar.gz: 91ff2004da7c0c5c2422acbc0dab97f6bcca2a58ba77e6839dd530dba7ac5175476bcd1d8a689cbfbcf5f8b9faa2d516c846ae671b650f16d06642832cc70aeb
6
+ metadata.gz: eaf257bfcd85e2ed470997d92a89235aa914c56ba28870679f0420dd690b2fcb0784f1bfbab4b2fdcd0055fac69c0f2b3fc0f10c133c01ea9ade2e858ed2bb05
7
+ data.tar.gz: a657f4de01aa9b4ec3ddebf4df06f865565bcfe072a8e9eb5be0b46e5d194735ea79946f75c939389dd2abaad908662f92871144d5afec84606c7a2c38efd7d1
@@ -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"
@@ -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: details[:name],
10
- chef_environment: details[:environment],
11
- normal: { toquen: details },
12
- run_list: details[:roles].map { |r| "role[#{r}]" }
13
- }.merge(existing)
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
 
@@ -0,0 +1,3 @@
1
+ config/deploy/*.rb
2
+ kitchen/nodes/*.json
3
+ log/*.log
@@ -1,3 +1,3 @@
1
1
  module Toquen
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
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.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