Sha256: 7fd6f0a8df6bceade77ce3a00df6ec33489fc2c6beb19b3935eba67721e3efb4

Contents?: true

Size: 848 Bytes

Versions: 16

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

16 entries across 16 versions & 1 rubygems

Version Path
souls-1.19.6 lib/souls/app/utils/painter.rb
souls-1.19.5 lib/souls/app/utils/painter.rb
souls-1.19.4 lib/souls/app/utils/painter.rb
souls-1.19.3 lib/souls/app/utils/painter.rb
souls-1.19.2 lib/souls/app/utils/painter.rb
souls-1.19.1 lib/souls/app/utils/painter.rb
souls-1.19.0 lib/souls/app/utils/painter.rb
souls-1.18.8 lib/souls/app/utils/painter.rb
souls-1.18.7 lib/souls/app/utils/painter.rb
souls-1.18.6 lib/souls/app/utils/painter.rb
souls-1.18.5 lib/souls/app/utils/painter.rb
souls-1.18.4 lib/souls/app/utils/painter.rb
souls-1.18.3 lib/souls/app/utils/painter.rb
souls-1.18.2 lib/souls/app/utils/painter.rb
souls-1.18.1 lib/souls/app/utils/painter.rb
souls-1.18.0 lib/souls/app/utils/painter.rb