Sha256: a66e7f50097ee7cc5a128d8fa112ae781411a0e044aacf67ffc6eedf51c878cd
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
module Nrb module Commands class Inside < Commands::Base def ensure_inside_root return true if Nrb.inside? fail_outside_root end private def fail_outside_root command = self.class.to_s.split('::').last fail Nrb::OutsideRootError, "You need to be inside a NinjaRuby folder to run the #{command} command." end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nrb-1.1.0 | lib/nrb/commands/base/inside.rb |