Sha256: 69bccde740dab39a83a502509dcbc0d56976431e71c9540710cf6c37e6e5d82f

Contents?: true

Size: 848 Bytes

Versions: 28

Compression:

Stored size: 848 Bytes

Contents

module Souls
  module Painter
    class << self
      def create_file(text)
        puts(Paint % ["✓ %{white_text}", :green, { white_text: ["Created file #{text}", :white] }])
      end

      def update_file(text)
        puts(Paint % ["✓ %{white_text}", :yellow, { white_text: ["Updated file #{text}", :white] }])
      end

      def delete_file(text)
        puts(Paint % ["✓ %{white_text}", :red, { white_text: ["Deleted file #{text}", :white] }])
      end

      def error(text)
        puts(Paint["🚨 #{text}", :red])
      end

      def warning(text)
        puts(Paint["🚨 #{text}", :yellow])
      end

      def success(text)
        puts(Paint["🎉 #{text}", :green])
      end

      def sync(text)
        puts(Paint % ["✓ %{white_text}", :blue, { white_text: ["Synced #{text}", :white] }])
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
souls-1.17.3 lib/souls/app/utils/painter.rb
souls-1.17.2 lib/souls/app/utils/painter.rb
souls-1.17.1 lib/souls/app/utils/painter.rb
souls-1.17.0 lib/souls/app/utils/painter.rb
souls-1.16.4 lib/souls/app/utils/painter.rb
souls-1.16.3 lib/souls/app/utils/painter.rb
souls-1.16.2 lib/souls/app/utils/painter.rb
souls-1.16.1 lib/souls/app/utils/painter.rb
souls-1.16.0 lib/souls/app/utils/painter.rb
souls-1.15.5 lib/souls/app/utils/painter.rb
souls-1.15.4 lib/souls/app/utils/painter.rb
souls-1.15.3 lib/souls/app/utils/painter.rb
souls-1.15.2 lib/souls/app/utils/painter.rb
souls-1.15.1 lib/souls/app/utils/painter.rb
souls-1.15.0 lib/souls/app/utils/painter.rb
souls-1.14.3 lib/souls/app/utils/painter.rb
souls-1.14.2 lib/souls/app/utils/painter.rb
souls-1.14.1 lib/souls/app/utils/painter.rb
souls-1.14.0 lib/souls/app/utils/painter.rb
souls-1.13.8 lib/souls/app/utils/painter.rb