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.3.20 lib/standup/core_ext.rb
standup-0.3.19 lib/standup/core_ext.rb
standup-0.3.18 lib/standup/core_ext.rb
standup-0.3.17 lib/standup/core_ext.rb
standup-0.3.16 lib/standup/core_ext.rb
standup-0.3.15 lib/standup/core_ext.rb
standup-0.3.14 lib/standup/core_ext.rb
standup-0.3.13 lib/standup/core_ext.rb
standup-0.3.12 lib/standup/core_ext.rb
standup-0.3.11 lib/standup/core_ext.rb