Module: Rest::Terminal::Commands

Included in:
Rest::Terminal
Defined in:
lib/rest/terminal/commands.rb

Instance Method Summary collapse

Instance Method Details

#is_runable?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
# File 'lib/rest/terminal/commands.rb', line 4

def is_runable?
  is_restt = File.directory?(".rest-terminal")
  if !is_restt
    puts "\nPlease run command \"init\" to start REST Terminal!".red
    puts "\n"
  end
  is_restt
end