Module: Sandbox

Defined in:
lib/sandbox.rb,
lib/sandbox/cli.rb,
lib/sandbox/errors.rb,
lib/sandbox/output.rb,
lib/sandbox/version.rb,
lib/sandbox/installer.rb

Defined Under Namespace

Modules: Output Classes: CLI, Error, Installer, LoadedSandboxError, ParseError

Constant Summary collapse

VERSION =
"0.5.0"

Class Method Summary collapse

Class Method Details

.decrease_verbosityObject



15
16
17
# File 'lib/sandbox.rb', line 15

def decrease_verbosity
  @verbosity = verbosity - 1
end

.increase_verbosityObject



11
12
13
# File 'lib/sandbox.rb', line 11

def increase_verbosity
  @verbosity = verbosity + 1
end

.quiet?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/sandbox.rb', line 19

def quiet?
  verbosity < 0
end

.really_quiet?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/sandbox.rb', line 23

def really_quiet?
  verbosity < -1
end

.really_verbose?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/sandbox.rb', line 31

def really_verbose?
  verbosity > 1
end

.verbose?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/sandbox.rb', line 27

def verbose?
  verbosity > 0
end

.verbosityObject



7
8
9
# File 'lib/sandbox.rb', line 7

def verbosity
  @verbosity ||= 0
end