Module: RailsBase::CliActions

Included in:
Commands, Features::Chat, Features::Facebook, Features::Twilio, FileManipulation, GitActions
Defined in:
lib/rs-rails-base/cli_actions.rb

Overview

This module provides help to interact with client terminal

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.ask_for_something(ask) ⇒ Object



11
12
13
14
# File 'lib/rs-rails-base/cli_actions.rb', line 11

def self.ask_for_something(ask)
  cli = HighLine.new
  cli.ask ask
end

Instance Method Details

#say_something(message, style = 'BOLD') ⇒ Object



6
7
8
9
# File 'lib/rs-rails-base/cli_actions.rb', line 6

def say_something(message, style = 'BOLD')
  cli = HighLine.new
  cli.say("<%= color('#{message}', #{style}) %>")
end