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.5.3 lib/standup/core_ext.rb
standup-0.5.1 lib/standup/core_ext.rb
standup-0.5.0 lib/standup/core_ext.rb
standup-0.4.0 lib/standup/core_ext.rb
standup-0.3.37 lib/standup/core_ext.rb
standup-0.3.36 lib/standup/core_ext.rb
standup-0.3.35 lib/standup/core_ext.rb
standup-0.3.34 lib/standup/core_ext.rb
standup-0.3.33 lib/standup/core_ext.rb
standup-0.3.32 lib/standup/core_ext.rb
standup-0.3.31 lib/standup/core_ext.rb
standup-0.3.30 lib/standup/core_ext.rb
standup-0.3.29 lib/standup/core_ext.rb
standup-0.3.28 lib/standup/core_ext.rb
standup-0.3.27 lib/standup/core_ext.rb
standup-0.3.26 lib/standup/core_ext.rb
standup-0.3.25 lib/standup/core_ext.rb
standup-0.3.24 lib/standup/core_ext.rb
standup-0.3.23 lib/standup/core_ext.rb
standup-0.3.22 lib/standup/core_ext.rb