Sha256: e33c0540e05ee396ee74a97ee5368f6a6b140ffd12be69e719556575a33ebef1

Contents?: true

Size: 827 Bytes

Versions: 2

Compression:

Stored size: 827 Bytes

Contents

module Berkshelf
  module Formatters
    class HumanReadable
      include AbstractFormatter

      Berkshelf.formatters["human"] = self

      def install(cookbook, version, location)
        Berkshelf.ui.info "Installing #{cookbook} (#{version}) from #{location}"
      end

      def use(cookbook, version, path=nil)
        Berkshelf.ui.info "Using #{cookbook} (#{version})#{' at '+path if path}"
      end

      def upload(cookbook, version, chef_server_url)
        Berkshelf.ui.info "Uploading #{cookbook} (#{version}) to: '#{chef_server_url}'"
      end

      def shims_written(directory)
        Berkshelf.ui.info "Shims written to: '#{directory}'"
      end

      def msg(message)
        Berkshelf.ui.info message
      end

      def error(message)
        Berkshelf.ui.error message
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
berkshelf-0.4.0 lib/berkshelf/formatters/human_readable.rb
berkshelf-0.4.0.rc4 lib/berkshelf/formatters/human_readable.rb