euca-deploy-formatter 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d2e2cf662582f92b79dbf5af0b60a093769bdf25
4
+ data.tar.gz: 5caf593d36503638b8764568c0a6d0fe8f27a27b
5
+ SHA512:
6
+ metadata.gz: 6aa0fd19dc8470149e67090e586caf7838ffef3af674b604bdf36d363bcff5680b4311e3d13cef43fc81e2041ded0d1bb30e19ea48c8af24c401142bad2ba7b6
7
+ data.tar.gz: e05ab1771ad3f2affd1a7295fc4d53d8fac19b9e80e3af33cecb6e8c2d686a1487fde84855218fb87ad63d66e92450ec8689cd95e6bfd5fc54ad1620b4eb0ffa
@@ -0,0 +1,18 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "euca-deploy-formatter"
5
+ s.version = "0.0.2"
6
+ s.authors = ["Vic Igleisas"]
7
+ s.email = ["vic.iglesias@hp.com"]
8
+ s.homepage = "https://github.com/viglesiasce/euca-deploy-formatter"
9
+ s.summary = %q{Euca Deploy Chef log formatter}
10
+ s.description = %q{Formatter used in Euca Deploy}
11
+
12
+ s.rubyforge_project = "euca-deploy"
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
18
+ end
@@ -0,0 +1,47 @@
1
+ require 'chef/formatters/minimal'
2
+
3
+ class Chef
4
+ module Formatters
5
+ class EucaDeploy < Formatters::Base
6
+
7
+ cli_name(:euca)
8
+
9
+ # Called at the very start of a Chef Run
10
+ def run_start(version)
11
+ puts "Starting Chef Client, version #{version}"
12
+ end
13
+
14
+ # Called before the cookbook collection is fetched from the server.
15
+ def cookbook_resolution_start(expanded_run_list)
16
+ puts "Very run list: #{expanded_run_list.inspect}"
17
+ end
18
+
19
+ def cookbook_sync_start(cookbook_count)
20
+ puts "Synchronizing cookbooks"
21
+ end
22
+
23
+ def converge_start(run_context)
24
+ puts "Executing #{run_context.resource_collection.all_resources.size} resources"
25
+ end
26
+
27
+ def converge_complete
28
+ puts 'Configuration complete.'
29
+ end
30
+
31
+ def resource_action_start(resource, action, notification_type=nil, notifier=nil)
32
+ if resource.cookbook_name && resource.recipe_name
33
+ resource_recipe = "#{resource.cookbook_name}::#{resource.recipe_name}"
34
+ end
35
+
36
+ if resource_recipe != @current_recipe
37
+ puts "Recipe: #{resource_recipe}"
38
+ @current_recipe = resource_recipe
39
+ end
40
+ puts " * #{resource} action #{action}"
41
+ end
42
+
43
+ private
44
+
45
+ end
46
+ end
47
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: euca-deploy-formatter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Vic Igleisas
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Formatter used in Euca Deploy
14
+ email:
15
+ - vic.iglesias@hp.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - euca-deploy-formatter.gemspec
21
+ - lib/euca-deploy-formatter.rb
22
+ homepage: https://github.com/viglesiasce/euca-deploy-formatter
23
+ licenses: []
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project: euca-deploy
41
+ rubygems_version: 2.2.2
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: Euca Deploy Chef log formatter
45
+ test_files: []