Class: Nrb::Commands::Inside

Inherits:
Base
  • Object
show all
Defined in:
lib/nrb/commands/base/inside.rb

Overview

This class fires a task that checks if the following command is done inside the root of the project.

Direct Known Subclasses

Console, Resource, Starter

Instance Method Summary collapse

Methods inherited from Base

#opts, source_root

Instance Method Details

#ensure_inside_rootObject



6
7
8
9
# File 'lib/nrb/commands/base/inside.rb', line 6

def ensure_inside_root
  return true if Nrb.inside?
  fail_outside_root
end