Sha256: 8a4714d5ceeb255e9d46da1e09f7823d3a163e5f014d130c6a04b9a18f776900

Contents?: true

Size: 332 Bytes

Versions: 50

Compression:

Stored size: 332 Bytes

Contents

module Kernel
  def bright_p message, color = ''
    puts "\e[1m#{color}#{message}\e[0m"
  end
  
  def bright_ask message, echo = true
    bright_p message, HighLine::GREEN
    HighLine.new.ask('') {|q| q.echo = echo}
  end
  
  def local_exec command
    bright_p command
    `#{command} 2>&1`.tap{|result| puts result}
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
standup-0.6.9 lib/standup/core_ext.rb
standup-0.6.8 lib/standup/core_ext.rb
standup-0.6.7 lib/standup/core_ext.rb
standup-0.6.6 lib/standup/core_ext.rb
standup-0.6.5 lib/standup/core_ext.rb
standup-0.6.4 lib/standup/core_ext.rb
standup-0.6.3 lib/standup/core_ext.rb
standup-0.6.2 lib/standup/core_ext.rb
standup-0.6.1 lib/standup/core_ext.rb
standup-0.6.0 lib/standup/core_ext.rb
standup-0.5.14 lib/standup/core_ext.rb
standup-0.5.13 lib/standup/core_ext.rb
standup-0.5.11 lib/standup/core_ext.rb
standup-0.5.10 lib/standup/core_ext.rb
standup-0.5.9 lib/standup/core_ext.rb
standup-0.5.8 lib/standup/core_ext.rb
standup-0.5.7 lib/standup/core_ext.rb
standup-0.5.6 lib/standup/core_ext.rb
standup-0.5.5 lib/standup/core_ext.rb
standup-0.5.4 lib/standup/core_ext.rb