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.21 lib/sunzi/utility.rb
sunzi-rails-0.2.20 lib/sunzi/utility.rb
sunzi-rails-0.3.0 lib/sunzi/utility.rb
sunzi-rails-0.2.19 lib/sunzi/utility.rb
sunzi-rails-0.2.18 lib/sunzi/utility.rb
sunzi-rails-0.2.17 lib/sunzi/utility.rb
sunzi-rails-0.2.16 lib/sunzi/utility.rb
sunzi-rails-0.2.15 lib/sunzi/utility.rb
sunzi-rails-0.2.14 lib/sunzi/utility.rb
sunzi-rails-0.2.13 lib/sunzi/utility.rb
sunzi-rails-0.2.12 lib/sunzi/utility.rb
sunzi-rails-0.2.11 lib/sunzi/utility.rb
sunzi-rails-0.2.10 lib/sunzi/utility.rb
sunzi-rails-0.2.9 lib/sunzi/utility.rb
sunzi-rails-0.2.8 lib/sunzi/utility.rb
sunzi-rails-0.2.7 lib/sunzi/utility.rb
sunzi-rails-0.2.6 lib/sunzi/utility.rb
sunzi-rails-0.2.5 lib/sunzi/utility.rb
sunzi-rails-0.2.4 lib/sunzi/utility.rb
sunzi-rails-0.2.3 lib/sunzi/utility.rb