Sha256: fd0f025f4548c88b385ccd8e662034bb2ecedfb05d9f2c731d97e0638ae102b2

Contents?: true

Size: 659 Bytes

Versions: 33

Compression:

Stored size: 659 Bytes

Contents

require 'forwardable'
require 'singleton'
require 'thor'

module RooOnRails
  module Checks
    module Helpers
      class Receiver < Thor::Group
        include Singleton
        include Thor::Actions
      end

      def self.included(by)
        by.class_eval do
          extend Forwardable
          delegate %i(say ask yes? no? create_file
                      add_file remove_file copy_file
                      template directory inside inject_into_file
                      append_to_file) => :'RooOnRails::Checks::Helpers::Receiver.instance'
        end
      end

      def bold(str)
        "\e[1;4m#{str}\e[22;24m"
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
roo_on_rails-1.12.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.11.1 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.11.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.10.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.9.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.8.1 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.8.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.7.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.6.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.5.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.4.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.3.1 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.3.0 lib/roo_on_rails/checks/helpers.rb