chef-silent 0.0.3 → 0.0.4
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.
- data/Rakefile +1 -1
- data/chef-silent.gemspec +8 -8
- data/lib/chef/silent/silent_formatters.rb +14 -12
- data/lib/chef/silent/version.rb +1 -1
- metadata +2 -2
    
        data/Rakefile
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            require  | 
| 1 | 
            +
            require 'bundler/gem_tasks'
         | 
    
        data/chef-silent.gemspec
    CHANGED
    
    | @@ -4,22 +4,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
| 4 4 | 
             
            require 'chef/silent/version'
         | 
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |spec|
         | 
| 7 | 
            -
              spec.name          =  | 
| 7 | 
            +
              spec.name          = 'chef-silent'
         | 
| 8 8 | 
             
              spec.version       = Chef::Silent::VERSION
         | 
| 9 | 
            -
              spec.authors       = [ | 
| 10 | 
            -
              spec.email         =  | 
| 9 | 
            +
              spec.authors       = ['Vasiliev Dmitry']
         | 
| 10 | 
            +
              spec.email         = %w(vadv.mkn@gmail.com)
         | 
| 11 11 | 
             
              spec.description   = %q{Silent formatters for chef-client}
         | 
| 12 12 | 
             
              spec.summary       = %q{Make chef-client silent}
         | 
| 13 | 
            -
              spec.homepage      =  | 
| 14 | 
            -
              spec.license       =  | 
| 13 | 
            +
              spec.homepage      = 'https://github.com/vadv/chef-silent'
         | 
| 14 | 
            +
              spec.license       = 'MIT'
         | 
| 15 15 |  | 
| 16 16 | 
             
              spec.files         = `git ls-files`.split($/)
         | 
| 17 17 | 
             
              spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
         | 
| 18 18 | 
             
              spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
         | 
| 19 | 
            -
              spec.require_paths =  | 
| 19 | 
            +
              spec.require_paths = %w(lib)
         | 
| 20 20 |  | 
| 21 21 | 
             
              spec.add_dependency('chef')
         | 
| 22 22 |  | 
| 23 | 
            -
              spec.add_development_dependency  | 
| 24 | 
            -
              spec.add_development_dependency  | 
| 23 | 
            +
              spec.add_development_dependency 'bundler', '~> 1.3'
         | 
| 24 | 
            +
              spec.add_development_dependency 'rake'
         | 
| 25 25 | 
             
            end
         | 
| @@ -25,45 +25,38 @@ class Chef | |
| 25 25 | 
             
                  end
         | 
| 26 26 |  | 
| 27 27 | 
             
                  def cookbook_sync_start(cookbook_count)
         | 
| 28 | 
            -
                    puts  | 
| 28 | 
            +
                    puts 'Synchronizing cookbooks'
         | 
| 29 29 | 
             
                  end
         | 
| 30 30 |  | 
| 31 31 | 
             
                  def synchronized_cookbook(cookbook_name)
         | 
| 32 | 
            -
                    ;
         | 
| 33 32 | 
             
                  end
         | 
| 34 33 |  | 
| 35 34 | 
             
                  def cookbook_sync_complete
         | 
| 36 | 
            -
             | 
| 35 | 
            +
             | 
| 37 36 | 
             
                  end
         | 
| 38 37 |  | 
| 39 38 | 
             
                  def library_load_start(file_count)
         | 
| 40 | 
            -
                    ;
         | 
| 41 39 | 
             
                  end
         | 
| 42 40 |  | 
| 43 41 | 
             
                  def file_loaded(path)
         | 
| 44 | 
            -
                    ;
         | 
| 45 42 | 
             
                  end
         | 
| 46 43 |  | 
| 47 44 | 
             
                  def recipe_load_complete;
         | 
| 48 45 | 
             
                  end
         | 
| 49 46 |  | 
| 50 47 | 
             
                  def converge_start(run_context)
         | 
| 51 | 
            -
                    ;
         | 
| 52 48 | 
             
                  end
         | 
| 53 49 |  | 
| 54 50 | 
             
                  def converge_complete;
         | 
| 55 51 | 
             
                  end
         | 
| 56 52 |  | 
| 57 53 | 
             
                  def resource_skipped(resource, action, conditional)
         | 
| 58 | 
            -
                    ;
         | 
| 59 54 | 
             
                  end
         | 
| 60 55 |  | 
| 61 56 | 
             
                  def resource_up_to_date(resource, action)
         | 
| 62 | 
            -
                    ;
         | 
| 63 57 | 
             
                  end
         | 
| 64 58 |  | 
| 65 59 | 
             
                  def msg(message)
         | 
| 66 | 
            -
                    ;
         | 
| 67 60 | 
             
                  end
         | 
| 68 61 |  | 
| 69 62 | 
             
                  def resource_update_applied(resource, action, update)
         | 
| @@ -73,16 +66,25 @@ class Chef | |
| 73 66 | 
             
                  def resource_updated(resource, action)
         | 
| 74 67 | 
             
                    if resource.class == Chef::Resource::File || resource.class == Chef::Resource::Template
         | 
| 75 68 | 
             
                      if resource.diff
         | 
| 76 | 
            -
                        print  | 
| 69 | 
            +
                        print '=' * 80 + "\n"
         | 
| 77 70 | 
             
                        ColorDiff.print_diff resource.diff.split('\n')
         | 
| 78 | 
            -
                        print  | 
| 71 | 
            +
                        print '=' * 80 + "\n"
         | 
| 72 | 
            +
                      end
         | 
| 73 | 
            +
                    end
         | 
| 74 | 
            +
                    if resource.class == Chef::Resource::Package
         | 
| 75 | 
            +
                      print " \n"
         | 
| 76 | 
            +
                      if resource.version
         | 
| 77 | 
            +
                        print("* Install package #{resource.name} version #{resource.version} \n", :green)
         | 
| 78 | 
            +
                      else
         | 
| 79 | 
            +
                        print("* Remove package #{resource.name} \n", :red)
         | 
| 79 80 | 
             
                      end
         | 
| 81 | 
            +
                      print " \n"
         | 
| 80 82 | 
             
                    end
         | 
| 81 83 | 
             
                    updated_resources << resource
         | 
| 82 84 | 
             
                  end
         | 
| 83 85 |  | 
| 84 86 | 
             
                  def display_error(description)
         | 
| 85 | 
            -
                    puts( | 
| 87 | 
            +
                    puts('')
         | 
| 86 88 | 
             
                    description.display(output)
         | 
| 87 89 | 
             
                  end
         | 
| 88 90 |  | 
    
        data/lib/chef/silent/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: chef-silent
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.4
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2013-07- | 
| 12 | 
            +
            date: 2013-07-20 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: chef
         |