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-2.2.2 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-2.2.1 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-2.2.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-2.1.2 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-2.1.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-2.0.0.pre.pre.2 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-2.0.0.pre.pre.1 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.22.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.21.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.20.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.19.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.18.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.17.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.16.2 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.16.1 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.16.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.15.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.14.0 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.13.1 lib/roo_on_rails/checks/helpers.rb
roo_on_rails-1.13.0 lib/roo_on_rails/checks/helpers.rb