Sha256: 449100c9e84eb6109cf01f27b5fef795f3b7bca2450714f960a5a8d908edd3d3

Contents?: true

Size: 229 Bytes

Versions: 44

Compression:

Stored size: 229 Bytes

Contents

module Sunzi
  module Utility
    def abort_with(text)
      Logger.error text
      abort
    end

    def exit_with(text)
      Logger.success text
      exit
    end

    def say(text)
      Logger.info text
    end
  end
end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
sunzi-rails-0.2.2 lib/sunzi/utility.rb
sunzi-rails-0.2.1 lib/sunzi/utility.rb
sunzi-rails-0.2.0 lib/sunzi/utility.rb
sunzi-rails-0.1.0 lib/sunzi/utility.rb
sunzi-1.5.2 lib/sunzi/utility.rb
sunzi-1.5.1 lib/sunzi/utility.rb
sunzi-1.5.0 lib/sunzi/utility.rb
sunzi-1.4.0 lib/sunzi/utility.rb
sunzi-1.3.0 lib/sunzi/utility.rb
sunzi-1.2.0 lib/sunzi/utility.rb
sunzi-1.1.2 lib/sunzi/utility.rb
sunzi-1.1.1 lib/sunzi/utility.rb
sunzi-1.1.0 lib/sunzi/utility.rb
sunzi-1.0.0 lib/sunzi/utility.rb
sunzi-0.9.0 lib/sunzi/utility.rb
sunzi-0.8.0 lib/sunzi/utility.rb
sunzi-0.7.0 lib/sunzi/utility.rb
sunzi-0.6.0 lib/sunzi/utility.rb
sunzi-0.5.1 lib/sunzi/utility.rb
sunzi-0.5.0 lib/sunzi/utility.rb